<PackageReference Include="NUnit" Version="3.7.0" />

TextMessageWriter

TextMessageWriter writes constraint descriptions and messages in displayable form as a text stream. It tailors the display of individual message components to form the standard message format of NUnit assertion failure messages.
public static readonly string Pfx_Actual

Prefix used for the actual value line of a message

public static readonly string Pfx_Expected

Prefix used for the expected value line of a message

public static readonly int PrefixLength

Length of a message prefix

Construct a TextMessageWriter

public TextMessageWriter(string userMessage, object[] args)

Construct a TextMessageWriter, specifying a user message and optional formatting arguments.