Assert.

That<T>(ActualValueDelegate<T>, IResolveConstraint, string, object[]) Method

Summary

Apply a constraint to a TCLite.ActualValueDelegate, succeeding if the constraint is satisfied and throwing an assertion exception on failure.
Namespace
TCLite
Containing Type
Assert

Syntax

public static void That<T>(ActualValueDelegate<T> del, IResolveConstraint expr, string message = null, params object[] args)

Type Parameters

Name Description
T

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

Type Description
void