title: Debugging Nunit tests in Visual Studio C# Express 2010
body: <p>I've followed this advice to get debugging working for NUnit tests.</p>
  
  <p><a href="http://www.blackwasp.co.uk/NUnitCSharpExpress.aspx" rel="noreferrer">http://www.blackwasp.co.uk/NUnitCSharpExpress.aspx</a></p>
  
  <p>However, i have several tests that do <code>Assert.Throws&lt;...&gt;</code>, which causes the debugger to break when the exception i'm testing for occurs, when really i want it to break if an exception occurs outside of those calls.</p>
  
  <p>How can i get the debugger to ignore exceptions caused from within these kinds of methods?</p>
  
  <hr>
  
  <p>EDIT: I've event tried the below, which doesn't work!</p>
  
  <pre><code>[Test]
  public void InstanciatingWithNullParameterThrowsException()
  {
      try
      {
          Assert.Throws&lt;ArgumentNullException&gt;(() =&gt; new CachedStreamingEnumerable&lt;int&gt;(null));
          // This still throws and stops be being able to debug tests called after this one
      }
      catch
      {
  
      }
  }
  </code></pre>