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

PrefixConstraint

public abstract class PrefixConstraint : Constraint
Abstract base class used for prefixes
namespace NUnit.Framework.Constraints { public abstract class PrefixConstraint : Constraint { protected IConstraint BaseConstraint { get; set; } protected string DescriptionPrefix { get; set; } public override string Description => string.Format((BaseConstraint is EqualConstraint) ? "{0} equal to {1}" : "{0} {1}", DescriptionPrefix, BaseConstraint.Description); protected PrefixConstraint(IResolveConstraint baseConstraint) : base(baseConstraint) { Guard.ArgumentNotNull(baseConstraint, "baseConstraint"); BaseConstraint = baseConstraint.Resolve(); } } }