title: VerifyAll() with Throws<T>() in Moq
body: <p>I have a Mock object whose method I'm trying to setup by throwing an Exception when executed, for a particular unit test case using the Moq framework.</p>
  
  <pre><code>var mockMySvc = new Mock&lt;IMySvc&gt;();
  
  mockMySvc
     .Setup(x=&gt;x.SomeMethod())
     .Throws&lt;Exception&gt;();
  
  //Execution of some code
  
  //At the assertions
  mockMySvc.VerifyAll();
  </code></pre>
  
  <p>At runtime, the code complains about all the expections of <code>mockMySvc</code> not having been met despite the exception being thrown. Am I missing something or does the <code>.VerifyAll()</code> method not work with the <code>.Throws()</code> functionality.</p>