ConstraintResult
Contain the result of matching a Constraint against an actual value.
The actual value that was passed to the ApplyTo<T> method.
Description of the constraint may be affected by the state the constraint had
when ApplyTo<T> was performed against the actual value.
True if actual value meets the Constraint criteria otherwise false.
Display friendly name of the constraint.
Gets and sets the ResultStatus for this result.
Constructs a ConstraintResult for a particular Constraint.
Constructs a ConstraintResult for a particular Constraint.
Constructs a ConstraintResult for a particular Constraint.
Write the actual value for a failing constraint test to a
MessageWriter. The default implementation simply writes
the raw value of actual, leaving it to the writer to
perform any formatting.
Write the failure message to the MessageWriter provided
as an argument. The default implementation simply passes
the result and the actual value to the writer, which
then displays the constraint description and the value.
Constraints that need to provide additional details,
such as where the error occured can override this.