Edit

Share via


AndOperator Class

Definition

Operator that requires both it's arguments to succeed

public class AndOperator : NUnit.Framework.Constraints.BinaryOperator
type AndOperator = class
    inherit BinaryOperator
Inheritance

Constructors

AndOperator()

Construct an AndOperator

Fields

left_precedence

The precedence value used when the operator is about to be pushed to the stack.

(Inherited from ConstraintOperator)
right_precedence

The precedence value used when the operator is on the top of the stack.

(Inherited from ConstraintOperator)

Properties

LeftContext

The syntax element preceding this operator

(Inherited from ConstraintOperator)
LeftPrecedence

Gets the left precedence of the operator

(Inherited from BinaryOperator)
RightContext

The syntax element folowing this operator

(Inherited from ConstraintOperator)
RightPrecedence

Gets the right precedence of the operator

(Inherited from BinaryOperator)

Methods

ApplyOperator(Constraint, Constraint)

Apply the operator to produce an AndConstraint

Reduce(ConstraintBuilder+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.

(Inherited from BinaryOperator)

Applies to