Can someone tell me why this unit test that checks for exceptions fails? Obviously my real test is checking other code but I\'m using Int32.Parse to show the issue.
<
What test runner are you using? Not all of them work correctly with the exception assertions.
You may have better luck using [ExpectedException (typeof(FormatException))] or even Assert.Throws (() => Int32.Parse("abc"));
[ExpectedException (typeof(FormatException))]
Assert.Throws (() => Int32.Parse("abc"));