Summary
Apply a constraint to an actual value, succeeding if the constraint
fails and issuing a warning if it succeeds.
Syntax
public static void If<TActual>(TActual actual, IResolveConstraint expression, string message = null, params object[] args)
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 |
message |
string |
The message that will be displayed on failure |
args |
object[] |
Arguments to be used in formatting the message |
Return Value