title: MOQ setup function to throw exception doesn't work
body: <p>I have the following function signature:</p>
  
  <pre><code>T SomeMethod(Expression&lt;Func&lt;T, string&gt;&gt; param1, 
               , params Expression&lt;Func&lt;T, object&gt;&gt;[] items);
  </code></pre>
  
  <p>I want it to throw an exception everytime it's executed.</p>
  
  <p>I tried to do the following setup:</p>
  
  <pre><code>myMock.Setup(x =&gt; x.SomeMethod(Moq.It.IsAny&lt;Expression&lt;Func&lt;SomeClass, string&gt;&gt;&gt;()))
        .Throws(new Exception());
  </code></pre>
  
  <p>Everything works find but when I arrive to this method it does't throw an exception (although the object is my mock).</p>
  
  <p>I assume my setup is incorrect.</p>
  
  <p>I tried many variation for a while and now I'm a bit frustrated.</p>
  
  <p>I would have put more code but it is restricted. Each piece I want to upload I should  alter so excuse me for being cheap with information.</p>
  
  <p>Hope it's enough and some one can assist me.</p>