IGLib  1.7.2
The IGLib base library EXTENDED - with other lilbraries and applications.
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Events Macros
NUnit.Framework.Constraints.ConstraintBuilder.ConstraintStack Class Reference

ConstraintStack is a type-safe stack for holding Constraints More...

+ Collaboration diagram for NUnit.Framework.Constraints.ConstraintBuilder.ConstraintStack:

Public Member Functions

 ConstraintStack (ConstraintBuilder builder)
 Initializes a new instance of the ConstraintStack class. More...
 
void Push (IConstraint constraint)
 Pushes the specified constraint. As a side effect, the constraint's Builder field is set to the ConstraintBuilder owning this stack. More...
 
IConstraint Pop ()
 Pops this topmost constraint from the stack. As a side effect, the constraint's Builder field is set to null. More...
 

Properties

bool Empty [get]
 Gets a value indicating whether this ConstraintStack is empty. More...
 

Private Attributes

readonly Stack< IConstraintstack = new Stack<IConstraint>()
 
readonly ConstraintBuilder builder
 

Detailed Description

ConstraintStack is a type-safe stack for holding Constraints

Constructor & Destructor Documentation

NUnit.Framework.Constraints.ConstraintBuilder.ConstraintStack.ConstraintStack ( ConstraintBuilder  builder)
inline

Initializes a new instance of the ConstraintStack class.

Parameters
builderThe ConstraintBuilder using this stack.

Member Function Documentation

void NUnit.Framework.Constraints.ConstraintBuilder.ConstraintStack.Push ( IConstraint  constraint)
inline

Pushes the specified constraint. As a side effect, the constraint's Builder field is set to the ConstraintBuilder owning this stack.

Parameters
constraintThe constraint to put onto the stack

References NUnit.Framework.Constraints.IConstraint.Builder.

IConstraint NUnit.Framework.Constraints.ConstraintBuilder.ConstraintStack.Pop ( )
inline

Pops this topmost constraint from the stack. As a side effect, the constraint's Builder field is set to null.

Returns
The topmost contraint on the stack

References NUnit.Framework.Constraints.IConstraint.Builder.

Member Data Documentation

readonly Stack<IConstraint> NUnit.Framework.Constraints.ConstraintBuilder.ConstraintStack.stack = new Stack<IConstraint>()
private
readonly ConstraintBuilder NUnit.Framework.Constraints.ConstraintBuilder.ConstraintStack.builder
private

Property Documentation

bool NUnit.Framework.Constraints.ConstraintBuilder.ConstraintStack.Empty
get

Gets a value indicating whether this ConstraintStack is empty.

true if empty; otherwise, false.


The documentation for this class was generated from the following file: