MessageWriter.DisplayStringDifferences Method

Definition

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.

public abstract void DisplayStringDifferences (string expected, string actual, int mismatch, bool ignoreCase, bool clipping);
abstract member DisplayStringDifferences : string * string * int * bool * bool -> unit

Parameters

expected
String

The expected string value

actual
String

The actual string value

mismatch
Int32

The point at which the strings don't match or -1

ignoreCase
Boolean

If true, case is ignored in locating the point where the strings differ

clipping
Boolean

If true, the strings should be clipped to fit the line

Applies to