NUnit.Framework.TextMessageWriter Members

The members of NUnit.Framework.TextMessageWriter are listed below.

See Also: Inherited members from NUnit.Framework.Constraints.MessageWriter

Public Constructors

Construct a TextMessageWriter
Construct a TextMessageWriter, specifying a user message and optional formatting arguments.

Public Fields

static readonly
Pfx_Actualstring. Prefix used for the actual value line of a message
static readonly
Pfx_Expectedstring. Prefix used for the expected value line of a message
static readonly
PrefixLengthint. Length of a message prefix

Public Properties

override
MaxLineLengthint. Gets or sets the maximum line length for this writer

Public Methods

override
DisplayDifferences(NUnit.Framework.Constraints.Constraint)
Display Expected and Actual lines for a constraint. This is called by MessageWriter's default implementation of WriteMessageTo and provides the generic two-line display.
override
DisplayDifferences(object, object)
Display Expected and Actual lines for given values. This method may be called by constraints that need more control over the display of actual and expected values than is provided by the default implementation.
override
DisplayDifferences(object, object, NUnit.Framework.Constraints.Tolerance)
Display Expected and Actual lines for given values, including a tolerance value on the expected line.
override
DisplayStringDifferences(string, string, int, bool, bool)
Display the expected and actual string values on separate lines. If the mismatch parameter is >=0, an additional line is displayed line containing a caret that points to the mismatch point.
override
WriteActualValue(object)
Writes the text for an actual value.
override
WriteCollectionElements(ICollection, int, int)
Writes the text for a collection value, starting at a particular point, to a max length
override
WriteConnector(string)
Writes the text for a connector.
override
WriteExpectedValue(object)
Writes the text for an expected value.
override
WriteMessageLine(int, string, params object[])
Method to write single line message with optional args, usually written to precede the general failure message, at a givel indentation level.
override
WriteModifier(string)
Write the text for a modifier.
override
WritePredicate(string)
Writes the text for a predicate.
override
WriteValue(object)
Writes the text for a generalized value.