Search Results for

    Show / Hide Table of Contents

    Class PrefixOperator

    PrefixOperator takes a single constraint and modifies its action in some way.

    Inheritance
    object
    ConstraintOperator
    PrefixOperator
    CollectionOperator
    IndexerOperator
    NotOperator
    WithOperator
    Inherited Members
    ConstraintOperator.left_precedence
    ConstraintOperator.right_precedence
    ConstraintOperator.LeftContext
    ConstraintOperator.RightContext
    ConstraintOperator.LeftPrecedence
    ConstraintOperator.RightPrecedence
    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 PrefixOperator : ConstraintOperator

    Constructors

    View Source

    PrefixOperator()

    Declaration
    protected PrefixOperator()

    Methods

    View Source

    ApplyPrefix(IConstraint)

    Returns the constraint created by applying this prefix to another constraint.

    Declaration
    public abstract IConstraint ApplyPrefix(IConstraint constraint)
    Parameters
    Type Name Description
    IConstraint constraint
    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