I have a test which fails when run via the NUnit GUI or NUnit-Console but passes when run within the Unit Test Runner. The test below demonstrates the problem
public class SampleTestFixture
public void TearDown()
throw new Exception();
public void Test()
throw new ArgumentNullException();
It appears that the exception thrown in the TearDown is swallowed by the Unit Test Runner when a test is run that has an ExpectedException attribute.
Why does the behaviour of the unit test runner differ from NUnit?