#3811
13 years ago
07 Mar 2013 12:45 UTC
Steps to reproduce:
[TestMethod, ExpectedException(typeof(NullReferenceException))]
public void TestException_ShouldThrowNullReferenceException()
{
}
This test will rightly fail because no exception is thrown.
However, NCrunch does not provide any reason for the failure.
I would expect to see a message relating to the error and a stacktrace.
Many thanks, Dan
#3813
13 years ago
07 Mar 2013 20:03 UTC
Hi,
Thanks for sharing this issue. I've confirmed that the MSTest adapter isn't showing messages when failing with an expectedexception, and it definitely should be. I'll see that this gets fixed.
Cheers,
Remco
#3899
13 years ago
30 Mar 2013 21:41 UTC
For anyone interested, a fix for this problem has been introduced with the newly released version of NCrunch (v1.45).