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
ConstraintBuilderThe 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
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
ConstraintOperatorThe operator to put onto the stack.