Class BinaryOperator
Abstract base class for all binary operators
Inherited Members
Namespace: NUnit.Framework.Constraints
Assembly: nunit.framework.dll
Syntax
public abstract class BinaryOperator : ConstraintOperator
Constructors
View SourceBinaryOperator()
Declaration
protected BinaryOperator()
Properties
View SourceLeftPrecedence
Gets the left precedence of the operator
Declaration
public override int LeftPrecedence { get; }
Property Value
Type | Description |
---|---|
int |
Overrides
View SourceRightPrecedence
Gets the right precedence of the operator
Declaration
public override int RightPrecedence { get; }
Property Value
Type | Description |
---|---|
int |
Overrides
Methods
View SourceApplyOperator(IConstraint, IConstraint)
Abstract method that produces a constraint by applying the operator to its left and right constraint arguments.
Declaration
public abstract IConstraint ApplyOperator(IConstraint left, IConstraint right)
Parameters
Type | Name | Description |
---|---|---|
IConstraint | left | |
IConstraint | right |
Returns
Type | Description |
---|---|
IConstraint |
Reduce(ConstraintStack)
Reduce produces a constraint from the operator and any arguments. It takes the arguments from the constraint stack and pushes the resulting constraint on it.
Declaration
public override void Reduce(ConstraintBuilder.ConstraintStack stack)
Parameters
Type | Name | Description |
---|---|---|
ConstraintBuilder.ConstraintStack | stack |