NUnit.Framework.Constraints.MsgUtils
Static methods used in creating messages
namespace NUnit.Framework.Constraints
{
internal static class MsgUtils
{
public static ValueFormatter DefaultValueFormatter { get; set; }
public static void AddFormatter(ValueFormatterFactory formatterFactory);
public static string FormatValue(object val);
public static string FormatCollection(IEnumerable collection, long start = 0, int max = 10);
public static string GetTypeRepresentation(object obj);
public static string EscapeControlChars(string s);
public static string EscapeControlChars(string s, ref int index);
public static string EscapeNullCharacters(string s);
public static string GetArrayIndicesAsString(int[] indices);
public static int[] GetArrayIndicesFromCollectionIndex(IEnumerable collection, long index);
public static string ClipString(string s, int clipLength, int clipStart);
public static string ClipWhenNeeded(string s, int length, int maxDisplayLength, ref int mismatchLocation);
public static void ClipExpectedAndActual(ref string expected, ref string actual, int maxDisplayLength, ref int mismatchExpected, ref int mismatchActual);
public static (int, int) FindMismatchPosition(string expected, string actual, bool ignoreCase, bool ignoreWhiteSpace);
}
}