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 OperatorStack class.
public OperatorStack(ConstraintBuilder builder)
Parameters
builder
ConstraintBuilderThe ConstraintBuilder using this stack.
Properties
Empty
Gets a value indicating whether this OpStack 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
The top.
Methods
Pop()
Pops the topmost operator from the stack.
public ConstraintOperator Pop()
Returns
Push(ConstraintOperator)
Pushes the specified operator onto the stack.
public void Push(ConstraintOperator op)
Parameters
op
ConstraintOperatorThe op.