Why does ReSharper's test runner ignore ExpectedException?

Viewed 1099

when I run the following example with the debugger in Visual Studio 2010 (using TestDriven.NET), I get a pass, but when I run it with the ReSharper test runner, I get a fail. The test is written with Microsoft's test framework.

How can I set this up right? I basically just want to call a method with illegal input and I expect it to throw an exception.

[ExpectedException(typeof(System.Exception))]
[TestMethod]
public void TestSomething()
{
    throw new System.Exception();
}
2 Answers
Related