Edytuj

Udostępnij za pośrednictwem


MsgUtils Class

Definition

Static methods used in creating messages

public class MsgUtils
type MsgUtils = class
Inheritance
MsgUtils

Constructors

MsgUtils()

Methods

ClipExpectedAndActual(String, String, Int32, Int32)

Clip the expected and actual strings in a coordinated fashion, so that they may be displayed together.

ClipString(String, Int32, Int32)

Clip a string to a given length, starting at a particular offset, returning the clipped string with ellipses representing the removed parts

EscapeControlChars(String)

Converts any control characters in a string to their escaped representation.

FindMismatchPosition(String, String, Int32, Boolean)

Shows the position two strings start to differ. Comparison starts at the start index.

GetArrayIndicesAsString(Int32[])

Return the a string representation for a set of indices into an array

GetArrayIndicesFromCollectionIndex(IEnumerable, Int32)
GetTypeRepresentation(Object)

Returns the representation of a type as used in NUnitLite. This is the same as Type.ToString() except for arrays, which are displayed with their declared sizes.

Applies to