ExpectedExceptionAttribute is not working in MSTest
Posted
by Micah
on Stack Overflow
See other posts from Stack Overflow
or by Micah
Published on 2009-07-23T00:59:17Z
Indexed on
2010/04/18
10:33 UTC
Read the original article
Hit count: 497
This is wierd, but all of a sudden the `ExpectedExceptionAttribute' quit working for me the other day. Not sure what's gone wrong. I'm running VS 2010 and VS 2005 side-by-side. It's not working in VS 2010. This test should pass, however it is failing:
[TestMethod]
[ExpectedException(typeof(ArgumentNullException))]
public void Test_Exception()
{
throw new ArgumentNullException("test");
}
Any ideas? This really sux.
© Stack Overflow or respective owner