title: How could I unit test this?
body: <p>I am using the Mono and Lokad quality libraries to develop an API which does things like inspect the characteristics of methods to see if they throw exceptions, etc etc.</p>
  
  <p>One of my methods I have in this API looks like this:</p>
  
  <pre><code>// Get all methods which have a NotImplementedException
  var throwingMethods = _codebase.Methods
      .Where(m =&gt; m.GetInstructions()
                   .Exists(i =&gt; i.Creates&lt;NotImplementedException&gt;())
      ).ToArray();
   return throwingMethods;
  </code></pre>
  
  <p>How could I unit test this? C# does not have its own native ability to do the same thing. Perhaps I could just have a small assembly, make a hard-coded collection, and compare?</p>
  
  <p>Thanks</p>