IConstraint.

ApplyTo<TActual>(TActual) 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
IConstraint

Syntax

ConstraintResult ApplyTo<TActual>(ref TActual actual)

Type Parameters

Name Description
TActual

Parameters

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

Return Value

Type Description
ConstraintResult A ConstraintResult