[Mono-list] Nunit Assert()'s

Nick Drochak ndrochak@gol.com
Tue, 27 Nov 2001 21:36:51 +0900


All,

I just committed a change to SByteTest.cs wherein I added string
messages to all of the asserts in a particular test.  I needed to that
because I couldn't tell on which assert the test was failing.

My point is to recommend all NUnit writers to include a descriptive (and
unique within one test method) message for each of their asserts so that
when the assert fails, it is trivial to locate the failing one.

Plus I have a question.  Does anyone know if it is possible to set the
severity level of an assert in Nunit?  Other implementations of Xunit
frameworks allow the tester to specify that the tests can continue even
if a certain assert fails. I'd *love* to have this implemented in Nunit
if it isn't yet.

Regards,
Nick D.