Bearbeiten

Freigeben über


MessageWriter.DisplayDifferences Method

Definition

Overloads

DisplayDifferences(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.

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.

DisplayDifferences(Object, Object, Tolerance)

Display Expected and Actual lines for given values, including a tolerance value on the Expected line.

DisplayDifferences(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.

public abstract void DisplayDifferences (NUnit.Framework.Constraints.Constraint constraint);
abstract member DisplayDifferences : NUnit.Framework.Constraints.Constraint -> unit

Parameters

constraint
Constraint

The constraint that failed

Applies to

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.

public abstract void DisplayDifferences (object expected, object actual);
abstract member DisplayDifferences : obj * obj -> unit

Parameters

expected
Object

The expected value

actual
Object

The actual value causing the failure

Applies to

DisplayDifferences(Object, Object, Tolerance)

Display Expected and Actual lines for given values, including a tolerance value on the Expected line.

public abstract void DisplayDifferences (object expected, object actual, NUnit.Framework.Constraints.Tolerance tolerance);
abstract member DisplayDifferences : obj * obj * NUnit.Framework.Constraints.Tolerance -> unit

Parameters

expected
Object

The expected value

actual
Object

The actual value causing the failure

tolerance
Tolerance

The tolerance within which the test was made

Applies to