Search Results for

    Show / Hide Table of Contents

    Class BinaryOperator

    Abstract base class for all binary operators

    Inheritance
    object
    ConstraintOperator
    BinaryOperator
    AndOperator
    InsteadOperator
    OrOperator
    Inherited Members
    ConstraintOperator.left_precedence
    ConstraintOperator.right_precedence
    ConstraintOperator.LeftContext
    ConstraintOperator.RightContext
    object.GetType()
    object.MemberwiseClone()
    object.ToString()
    object.Equals(object)
    object.Equals(object, object)
    object.ReferenceEquals(object, object)
    object.GetHashCode()
    Namespace: NUnit.Framework.Constraints
    Assembly: nunit.framework.dll
    Syntax
    public abstract class BinaryOperator : ConstraintOperator

    Constructors

    View Source

    BinaryOperator()

    Declaration
    protected BinaryOperator()

    Properties

    View Source

    LeftPrecedence

    Gets the left precedence of the operator

    Declaration
    public override int LeftPrecedence { get; }
    Property Value
    Type Description
    int
    Overrides
    ConstraintOperator.LeftPrecedence
    View Source

    RightPrecedence

    Gets the right precedence of the operator

    Declaration
    public override int RightPrecedence { get; }
    Property Value
    Type Description
    int
    Overrides
    ConstraintOperator.RightPrecedence

    Methods

    View Source

    ApplyOperator(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
    View Source

    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
    Overrides
    ConstraintOperator.Reduce(ConstraintBuilder.ConstraintStack)
    • View Source
    In this article
    Back to top Generated by DocFX | Copyright (c) 2018- The NUnit Project - Licensed under CC BY-NC-SA 4.0