編輯

共用方式為


OrOperator Class

Definition

Operator that requires at least one of it's arguments to succeed

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

Constructors

OrOperator()

Construct an OrOperator

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 OrConstraint

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