Table of Contents

Class ConstraintBuilder.OperatorStack

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

OperatorStack is a type-safe stack for holding ConstraintOperators

public class ConstraintBuilder.OperatorStack
Inheritance
ConstraintBuilder.OperatorStack
Inherited Members

Constructors

OperatorStack(ConstraintBuilder)

Initializes a new instance of the ConstraintBuilder.OperatorStack class.

public OperatorStack(ConstraintBuilder builder)

Parameters

builder ConstraintBuilder

The ConstraintBuilder using this stack.

Properties

Empty

Gets a value indicating whether this ConstraintBuilder.OperatorStack is empty.

public bool Empty { get; }

Property Value

bool

true if empty; otherwise, false.

Top

Gets the topmost operator without modifying the stack.

public ConstraintOperator Top { get; }

Property Value

ConstraintOperator

Methods

Pop()

Pops the topmost operator from the stack.

public ConstraintOperator Pop()

Returns

ConstraintOperator

The topmost operator on the stack

Push(ConstraintOperator)

Pushes the specified operator onto the stack.

public void Push(ConstraintOperator op)

Parameters

op ConstraintOperator

The operator to put onto the stack.