Table of Contents

Class BinaryOperator

Namespace
NUnit.Framework.Constraints
Assembly
nunit.framework.dll

Abstract base class for all binary operators

public abstract class BinaryOperator : ConstraintOperator
Inheritance
BinaryOperator
Derived
Inherited Members

Constructors

BinaryOperator()

protected BinaryOperator()

Properties

LeftPrecedence

Gets the left precedence of the operator

public override int LeftPrecedence { get; }

Property Value

int

RightPrecedence

Gets the right precedence of the operator

public override int RightPrecedence { get; }

Property Value

int

Methods

ApplyOperator(IConstraint, IConstraint)

Abstract method that produces a constraint by applying the operator to its left and right constraint arguments.

public abstract IConstraint ApplyOperator(IConstraint left, IConstraint right)

Parameters

left IConstraint
right IConstraint

Returns

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.

public override void Reduce(ConstraintBuilder.ConstraintStack stack)

Parameters

stack ConstraintBuilder.ConstraintStack