Verify.That Method
Overloads
| Name | Description |
|---|---|
That(Boolean, String) | Verifies that the specified condition is true, throwing an assertion exception if it is false. |
That(Boolean, FormatInterpolatedStringHandler) | Verifies that the specified condition is true, throwing an assertion exception if it is false. |
That(Boolean, String)
Verifies that the specified condition is true, throwing an assertion exception if it is false.
c#
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. |
That(Boolean, FormatInterpolatedStringHandler)
Verifies that the specified condition is true, throwing an assertion exception if it is false.
c#
public static void That(bool condition, FormatInterpolatedStringHandler message);Parameters
| 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. |