Class ConstraintBuilder.ConstraintStack
ConstraintStack is a type-safe stack for holding Constraints
Inherited Members
Namespace: NUnit.Framework.Constraints
Assembly: nunit.framework.dll
Syntax
public sealed class ConstraintBuilder.ConstraintStackConstructors
View SourceConstraintStack(ConstraintBuilder)
Initializes a new instance of the ConstraintBuilder.ConstraintStack class.
Declaration
public ConstraintStack(ConstraintBuilder builder)Parameters
| Type | Name | Description | 
|---|---|---|
| ConstraintBuilder | builder | The ConstraintBuilder using this stack. | 
Properties
View SourceEmpty
Gets a value indicating whether this ConstraintBuilder.ConstraintStack is empty.
Declaration
public bool Empty { get; }Property Value
| Type | Description | 
|---|---|
| bool | 
Methods
View SourcePop()
Pops this topmost constraint from the stack. As a side effect, the constraint's Builder field is set to null.
Declaration
public IConstraint Pop()Returns
| Type | Description | 
|---|---|
| IConstraint | The topmost constraint on the stack | 
Push(IConstraint)
Pushes the specified constraint. As a side effect, the constraint's Builder field is set to the ConstraintBuilder owning this stack.
Declaration
public void Push(IConstraint constraint)Parameters
| Type | Name | Description | 
|---|---|---|
| IConstraint | constraint | The constraint to put onto the stack |