<PackageReference Include="nunit" Version="2.5.7.10213" />

ConstraintExpressionBase

public abstract class ConstraintExpressionBase
ConstraintExpressionBase is the abstract base class for the generated ConstraintExpression class, which represents a compound constraint in the process of being constructed from a series of syntactic elements. NOTE: ConstraintExpressionBase is aware of some of its derived classes, which is an apparent violation of encapsulation. Ideally, these classes would be a single class, but they must be separated in order to allow parts to be generated under .NET 1.x and to provide proper user feedback in syntactically aware IDEs.

The ConstraintBuilder holding the elements recognized so far

Initializes a new instance of the ConstraintExpressionBase class.

Initializes a new instance of the ConstraintExpressionBase class passing in a ConstraintBuilder, which may be pre-populated.

Appends an operator to the expression and returns the resulting expression itself.

Appends a self-resolving operator to the expression and returns a new ResolvableConstraintExpression.

public Constraint Append(Constraint constraint)

Appends a constraint to the expression and returns that constraint, which is associated with the current state of the expression being built.