title: Zero division does not throw exception in nunit
body: <p>Running the following C# code through NUnit yields </p>
  
  <pre><code>Test.ControllerTest.TestSanity: Expected: `&lt;System.DivideByZeroException&gt;` But was:  null
  </code></pre>
  
  <p>So either no DivideByZeroException is thrown, or NUnit does not catch it. Similar to <a href="https://stackoverflow.com/questions/2516622/nunit-assert-thatmethod-throws-exception-not-catching-exceptions">this</a> question, but the answers he got, do not seem to work for me. This is using NUnit 2.5.5.10112, and .NET 4.0.30319.</p>
  
  <pre><code>    [Test]
      public void TestSanity()
      {
          Assert.Throws&lt;DivideByZeroException&gt;(new TestDelegate(() =&gt; DivideByZero()));
      }
  
      private void DivideByZero()
      {
          // Parse "0" to make sure to get an error at run time, not compile time.
          var a = (1 / Double.Parse("0"));
      }
  </code></pre>
  
  <p>Any ideas?</p>