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.Internal.Execution.CompositeWorkItem Class Reference

A CompositeWorkItem represents a test suite and encapsulates the execution of the suite as well as all its child tests. More...

+ Inheritance diagram for NUnit.Framework.Internal.Execution.CompositeWorkItem:
+ Collaboration diagram for NUnit.Framework.Internal.Execution.CompositeWorkItem:

Public Member Functions

 CompositeWorkItem (TestSuite suite, ITestFilter childFilter)
 Construct a CompositeWorkItem for executing a test suite using a filter to select child tests. More...
 
- Public Member Functions inherited from NUnit.Framework.Internal.Execution.WorkItem
 WorkItem (Test test)
 Construct a WorkItem for a particular test. More...
 
void InitializeContext (TestExecutionContext context)
 Initialize the TestExecutionContext. This must be done before executing the WorkItem. More...
 
virtual void Execute ()
 Execute the current work item, including any child work items. More...
 

Protected Member Functions

override void PerformWork ()
 Method that actually performs the work. Overridden in CompositeWorkItem to do setup, run all child items and then do teardown. More...
 
- Protected Member Functions inherited from NUnit.Framework.Internal.Execution.WorkItem
void WorkItemComplete ()
 Method called by the derived class when all work is complete More...
 

Private Member Functions

bool CheckForCancellation ()
 
void InitializeSetUpAndTearDownCommands ()
 
void PerformOneTimeSetUp ()
 
void RunChildren ()
 
void CreateChildWorkItems ()
 
void SkipFixture (ResultState resultState, string message, string stackTrace)
 
void SkipChildren (TestSuite suite, ResultState resultState, string message)
 
void PerformOneTimeTearDown ()
 
string GetSkipReason ()
 
string GetProviderStackTrace ()
 
void OnChildCompleted (object sender, EventArgs e)
 
void CountDownChildTest ()
 

Static Private Member Functions

static bool IsStaticClass (Type type)
 

Private Attributes

TestSuite _suite
 
ITestFilter _childFilter
 
TestCommand _setupCommand
 
TestCommand _teardownCommand
 
List< WorkItem_children
 
CountdownEvent _childTestCountdown
 
object _completionLock = new object()
 

Additional Inherited Members

- Static Public Member Functions inherited from NUnit.Framework.Internal.Execution.WorkItem
static WorkItem CreateWorkItem (ITest test, ITestFilter filter)
 Creates a work item. More...
 
- Properties inherited from NUnit.Framework.Internal.Execution.WorkItem
WorkItemState State [get]
 Gets the current state of the WorkItem More...
 
Test Test [get]
 The test being executed by the work item More...
 
TestExecutionContext Context [get]
 The execution context More...
 
List< ITestActionActions [get]
 The test actions to be performed before and after this test More...
 
TestResult Result [get, protected set]
 The test result More...
 
- Events inherited from NUnit.Framework.Internal.Execution.WorkItem
EventHandler Completed
 Event triggered when the item is complete More...
 

Detailed Description

A CompositeWorkItem represents a test suite and encapsulates the execution of the suite as well as all its child tests.

Constructor & Destructor Documentation

NUnit.Framework.Internal.Execution.CompositeWorkItem.CompositeWorkItem ( TestSuite  suite,
ITestFilter  childFilter 
)
inline

Construct a CompositeWorkItem for executing a test suite using a filter to select child tests.

Parameters
suiteThe TestSuite to be executed
childFilterA filter used to select child tests

Member Function Documentation

override void NUnit.Framework.Internal.Execution.CompositeWorkItem.PerformWork ( )
inlineprotectedvirtual
bool NUnit.Framework.Internal.Execution.CompositeWorkItem.CheckForCancellation ( )
inlineprivate
void NUnit.Framework.Internal.Execution.CompositeWorkItem.PerformOneTimeSetUp ( )
inlineprivate
void NUnit.Framework.Internal.Execution.CompositeWorkItem.RunChildren ( )
inlineprivate
void NUnit.Framework.Internal.Execution.CompositeWorkItem.CreateChildWorkItems ( )
inlineprivate
void NUnit.Framework.Internal.Execution.CompositeWorkItem.SkipFixture ( ResultState  resultState,
string  message,
string  stackTrace 
)
inlineprivate
void NUnit.Framework.Internal.Execution.CompositeWorkItem.SkipChildren ( TestSuite  suite,
ResultState  resultState,
string  message 
)
inlineprivate
void NUnit.Framework.Internal.Execution.CompositeWorkItem.PerformOneTimeTearDown ( )
inlineprivate
string NUnit.Framework.Internal.Execution.CompositeWorkItem.GetSkipReason ( )
inlineprivate
string NUnit.Framework.Internal.Execution.CompositeWorkItem.GetProviderStackTrace ( )
inlineprivate
void NUnit.Framework.Internal.Execution.CompositeWorkItem.OnChildCompleted ( object  sender,
EventArgs  e 
)
inlineprivate
void NUnit.Framework.Internal.Execution.CompositeWorkItem.CountDownChildTest ( )
inlineprivate
static bool NUnit.Framework.Internal.Execution.CompositeWorkItem.IsStaticClass ( Type  type)
inlinestaticprivate

Member Data Documentation

TestSuite NUnit.Framework.Internal.Execution.CompositeWorkItem._suite
private
ITestFilter NUnit.Framework.Internal.Execution.CompositeWorkItem._childFilter
private
TestCommand NUnit.Framework.Internal.Execution.CompositeWorkItem._setupCommand
private
TestCommand NUnit.Framework.Internal.Execution.CompositeWorkItem._teardownCommand
private
List<WorkItem> NUnit.Framework.Internal.Execution.CompositeWorkItem._children
private
CountdownEvent NUnit.Framework.Internal.Execution.CompositeWorkItem._childTestCountdown
private
object NUnit.Framework.Internal.Execution.CompositeWorkItem._completionLock = new object()
private

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