Summary
Apply a constraint to a TCLite.ActualValueDelegate
,
succeeding if the constraint is satisfied and throwing an
assertion exception on failure.
Syntax
public static void That<T>(ActualValueDelegate<T> del, IResolveConstraint expr, string message = null, params object[] args)
Type Parameters
Parameters
Name |
Type |
Description |
del |
ActualValueDelegate<T> |
An ActualValueDelegate returning the value to be tested |
expr |
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