NUnit.Framework.Constraints.Constraint: Method Members

The methods of NUnit.Framework.Constraints.Constraint are listed below. For a list of all members, see the Constraint Members list.

See Also: Inherited members from System.Object

Public Methods

After(int) : NUnit.Framework.Constraints.DelayedConstraint
Documentation for this section has not yet been entered.
After(int, int) : NUnit.Framework.Constraints.DelayedConstraint
Documentation for this section has not yet been entered.
abstract
Matches(object) : bool
Test whether the constraint is satisfied by a given value
Matches<T>(NUnit.Framework.Constraints.ActualValueDelegate<T>) : bool
Documentation for this section has not yet been entered.
Matches<T>(ref T) : bool
Documentation for this section has not yet been entered.
override
ToString() : string
Default override of ToString returns the constraint DisplayName followed by any arguments within angle brackets.
WriteActualValueTo(NUnit.Framework.Constraints.MessageWriter)
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.
abstract
WriteDescriptionTo(NUnit.Framework.Constraints.MessageWriter)
Write the constraint description to a MessageWriter
WriteMessageTo(NUnit.Framework.Constraints.MessageWriter)
Write the failure message to the MessageWriter provided as an argument. The default implementation simply passes the constraint 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.

Protected Methods

GetStringRepresentation() : string
Documentation for this section has not yet been entered.