Summary
Apply a constraint to an actual value, succeeding if the constraint
is satisfied and throwing an assertion exception on failure.
Syntax
public static void That<T>(T actual, IResolveConstraint expression, string message = null, params object[] args)
Type Parameters
Parameters
Name |
Type |
Description |
actual |
T |
The actual value to test |
expression |
IResolveConstraint |
A Constraint expression to be applied |
message |
string |
The message that will be displayed on failure |
args |
object[] |
Arguments to be used in formatting the message |
Return Value