Sample:
Assert.AreNotEqual(0, result.Count);
[exec]
[exec] Tests run: 11, Failures: 1, Not run: 0, Time: 50.422 seconds
[exec]
[exec] Failures:
[exec] 1) Domain.UnitTest.ManagerTest.TestEmbeddedIndex
: Expected: not 0
[exec] But was: 0
[exec]
Is this what you are looking for?
Assert is very extensive. On fail of one of the conditions Nunit throws an error.
Assert.AreEqual(),Assert.AreSame(), Assert.Contains(),Assert.Fail();
Additionally Nunit has things like
[ExpectedException]
Dig into the documentation to learn more..
Cherian
2009-03-26 04:44:01