MsgUtils
Static methods used in creating messages
Current head of chain of value formatters. Public for testing.
Add a formatter to the chain of responsibility.
public static void ClipExpectedAndActual(ref string expected, ref string actual, int maxDisplayLength, int mismatch)
Clip the expected and actual strings in a coordinated fashion,
so that they may be displayed together.
Clip a string to a given length, starting at a particular offset, returning the clipped
string with ellipses representing the removed parts
Converts any control characters in a string
to their escaped representation.
Shows the position two strings start to differ. Comparison
starts at the start index.
Formats text for a collection value,
starting at a particular point, to a max length
Formats text to represent a generalized value.
Return the a string representation for a set of indices into an array
Get an array of indices representing the point in a collection or
array corresponding to a single int index into the collection.
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.