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

ResolvableConstraintExpression

ResolvableConstraintExpression is used to represent a compound constraint being constructed at a point where the last operator may either terminate the expression or may have additional qualifying constraints added to it. It is used, for example, for a Property element or for an Exception element, either of which may be optionally followed by constraints that apply to the property or exception.
using System.Runtime.CompilerServices; namespace NUnit.Framework.Constraints { [System.Runtime.CompilerServices.NullableContext(1)] [System.Runtime.CompilerServices.Nullable(0)] public class ResolvableConstraintExpression : ConstraintExpression, IResolveConstraint { public ConstraintExpression And => Append((ConstraintOperator)new AndOperator()); public ConstraintExpression Or => Append((ConstraintOperator)new OrOperator()); public ResolvableConstraintExpression() { } public ResolvableConstraintExpression(ConstraintBuilder builder) : base(builder) { } IConstraint IResolveConstraint.Resolve() { return builder.Resolve(); } } }