Method IsFalse
IsFalse(bool)
Assert that a condition must be false. Throws an exception if the assertion fails.
Declaration
[Conditional("UNITY_ASSERTIONS")]
public static void IsFalse(bool condition)
Parameters
Type | Name | Description |
---|---|---|
bool | condition | The expression that the caller expects to be false. |
IsFalse(bool, string)
Assert that a condition must be false. Throws an exception if the assertion fails.
Declaration
[Conditional("UNITY_ASSERTIONS")]
public static void IsFalse(bool condition, string message)
Parameters
Type | Name | Description |
---|---|---|
bool | condition | The expression that the caller expects to be false. |
string | message | If the assertion fails, this message will be logged. |