Build/Test Issues

NCrunch provides no feedback on ExpectedException test failures

Started by Superbreak on 6,187 views

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
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
For anyone interested, a fix for this problem has been introduced with the newly released version of NCrunch (v1.45).
Many thanks for fixing!

Post a reply

Log in to reply.