Summary
Apply a constraint to an actual value, succeeding if the constraint
is satisfied and issuing a warning on failure.
Syntax
public static void If<TActual>(TActual actual, IResolveConstraint expression, Func<string> getExceptionMessage)
Type Parameters
| Name |
Description |
| TActual |
The Type being compared. |
Parameters
| Name |
Type |
Description |
| actual |
TActual |
The actual value to test |
| expression |
IResolveConstraint |
A Constraint expression to be applied |
| getExceptionMessage |
Func<string> |
A function to build the message included with the Exception |
Return Value