Constraint
The Constraint class is the base of all built-in constraints
within NUnit. It provides the operator overloads used to combine
constraints.
Returns a ConstraintExpression by appending And
to the current constraint.
Arguments provided to this Constraint, for use in
formatting the description.
The ConstraintBuilder holding this constraint
The Description of what this constraint tests, for
use in messages and in the ConstraintResult.
The display name of this Constraint for use by ToString().
The default value is the name of the constraint with
trailing "Constraint" removed. Derived classes may set
this to another name in their constructors.
Returns a ConstraintExpression by appending Or
to the current constraint.
Returns a ConstraintExpression by appending And
to the current constraint.
Construct a constraint with optional arguments
This operator creates a constraint that is satisfied only if both
argument constraints are satisfied.
This operator creates a constraint that is satisfied if either
of the argument constraints is satisfied.
This operator creates a constraint that is satisfied if the
argument constraint is not satisfied.
Returns a DelayedConstraint with the specified delay time.
Returns a DelayedConstraint with the specified delay time
and polling interval.
Applies the constraint to an actual value, returning a ConstraintResult.
Applies the constraint to an ActualValueDelegate that returns
the value to be tested. The default implementation simply evaluates
the delegate but derived classes may override it to provide for
delayed processing.
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.
Returns the string representation of this constraint
Retrieves the value to be tested from an ActualValueDelegate.
The default implementation simply evaluates the delegate but derived
classes may override it to provide for delayed processing.