Skip to content

Verify.That Method ​

Overloads ​

NameDescription
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);

View source

Parameters ​

NameTypeDescription
conditionBooleanThe condition to verify. The assertion fails if this is false.
exceptionMessageStringThe 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);

View source

Parameters ​

NameTypeDescription
conditionBooleanThe condition to verify. The assertion fails if this is false.
messageFormatInterpolatedStringHandlerThe interpolated message for the assertion exception if the condition is false.