Verify.That Method
Overloads
That(Boolean, String)
Verifies that the specified condition is true, throwing an assertion exception if it is false.
public static void That(bool condition, string exceptionMessage);
Parameters
| Name |
Type |
Description |
| condition |
Boolean |
The condition to verify. The assertion fails if this is false. |
| exceptionMessage |
String |
The message for the assertion exception if the condition is false. |
Verifies that the specified condition is true, throwing an assertion exception if it is false.
public static void That(bool condition, FormatInterpolatedStringHandler message);
| Name |
Type |
Description |
| condition |
Boolean |
The condition to verify. The assertion fails if this is false. |
| message |
FormatInterpolatedStringHandler |
The interpolated message for the assertion exception if the condition is false. |