[翻译]NUnit---Condition Asserts && Comparisons Asserts && Type Asserts (五)
ConditionAsserts测试指定条件的方法称作条件测试,测试结果作为第一个参数,第二个是可选的消息参数。提供了如下方法:ViewCodeAssert.IsTrue(boolcondition);
Assert.IsTrue(boolcondition,stringmessage);
Assert.IsTrue(boolcondition,stringmessage,object[]p