Constraint.

ApplyConstraint<T>(T) Method

Summary

Test whether the constraint is satisfied by a given reference. The default implementation simply dereferences the value but derived classes may override it to provide for delayed processing.
Namespace
TCLite.Constraints
Containing Type
Constraint

Syntax

protected virtual ConstraintResult ApplyConstraint<T>(ref T actual)

Remarks

The value has already been validated when this method is called.

Type Parameters

Name Description
T

Parameters

Name Type Description
actual T A reference to the value to be tested

Return Value

Type Description
ConstraintResult A ConstraintResult