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

NUnit.Framework.Constraints.MessageWriter

public abstract class MessageWriter : StringWriter
MessageWriter is the abstract base for classes that write constraint descriptions and messages in some form. The class has separate methods for writing various components of a message, allowing implementations to tailor the presentation as needed.
namespace NUnit.Framework.Constraints { public abstract class CollectionConstraint : Constraint { protected CollectionConstraint(); protected CollectionConstraint(object arg); protected static bool IsEmpty(IEnumerable enumerable); protected abstract bool Matches(IEnumerable collection); } }