public static BooleanFailureMessage ( bool expected ) : string | ||
expected | bool | |
return | string |
public static void IsFalse(bool condition, string message) { if (condition) { Fail(AssertionMessageUtil.BooleanFailureMessage(false), message); } }
public static void IsTrue(bool condition, string message) { if (!condition) { Fail(AssertionMessageUtil.BooleanFailureMessage(true), message); } }
public static void IsTrue(bool condition, string message) { bool flag = !condition; if (flag) { Assert.Fail(AssertionMessageUtil.BooleanFailureMessage(true), message); } }