Class 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.
Implements
Inherited Members
Namespace: NUnit.Framework.Constraints
Assembly: nunit.framework.dll
Syntax
public class ResolvableConstraintExpression : ConstraintExpression, IResolveConstraint
Constructors
View SourceResolvableConstraintExpression()
Create a new instance of ResolvableConstraintExpression
Declaration
public ResolvableConstraintExpression()
ResolvableConstraintExpression(ConstraintBuilder)
Create a new instance of ResolvableConstraintExpression, passing in a pre-populated ConstraintBuilder.
Declaration
public ResolvableConstraintExpression(ConstraintBuilder builder)
Parameters
Type | Name | Description |
---|---|---|
ConstraintBuilder | builder |
Properties
View SourceAnd
Appends an And Operator to the expression
Declaration
public ConstraintExpression And { get; }
Property Value
Type | Description |
---|---|
ConstraintExpression |
Or
Appends an Or operator to the expression.
Declaration
public ConstraintExpression Or { get; }
Property Value
Type | Description |
---|---|
ConstraintExpression |