IGLib
1.7.2
The IGLib base library EXTENDED - with other lilbraries and applications.
|
A CompositeWorkItem represents a test suite and encapsulates the execution of the suite as well as all its child tests. More...
Public Member Functions | |
CompositeWorkItem (TestSuite suite, ITestFilter childFilter) | |
Construct a CompositeWorkItem for executing a test suite using a filter to select child tests. More... | |
![]() | |
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... | |
![]() | |
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 WorkItem | CreateWorkItem (ITest test, ITestFilter filter) |
Creates a work item. More... | |
![]() | |
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< ITestAction > | Actions [get] |
The test actions to be performed before and after this test More... | |
TestResult | Result [get, protected set] |
The test result More... | |
![]() | |
EventHandler | Completed |
Event triggered when the item is complete More... | |
A CompositeWorkItem represents a test suite and encapsulates the execution of the suite as well as all its child tests.
|
inline |
Construct a CompositeWorkItem for executing a test suite using a filter to select child tests.
suite | The TestSuite to be executed |
childFilter | A filter used to select child tests |
|
inlineprotectedvirtual |
Method that actually performs the work. Overridden in CompositeWorkItem to do setup, run all child items and then do teardown.
Implements NUnit.Framework.Internal.Execution.WorkItem.
References NUnit.Framework.Interfaces.ResultState.Explicit, NUnit.Framework.Interfaces.ResultState.Ignored, NUnit.Framework.Interfaces.ITestFilter.IsExplicitMatch(), NUnit.Framework.Interfaces.ResultState.NotRunnable, NUnit.Framework.Interfaces.ResultState.Skipped, and NUnit.Framework.Interfaces.ResultState.Success.
|
inlineprivate |
References NUnit.Framework.Interfaces.ResultState.Cancelled.
|
inlineprivate |
References NUnit.Framework.Internal.Execution.CommandBuilder.BuildSetUpTearDownList(), NUnit.Framework.Internal.Execution.CommandBuilder.MakeOneTimeSetUpCommand(), NUnit.Framework.Internal.Execution.CommandBuilder.MakeOneTimeTearDownCommand(), NUnit.Framework.ITestAction.Targets, NUnit.Framework.Interfaces.ITypeInfo.Type, and NUnit.Framework.Internal.Test.TypeInfo.
|
inlineprivate |
|
inlineprivate |
|
inlineprivate |
|
inlineprivate |
|
inlineprivate |
|
inlineprivate |
|
inlineprivate |
|
inlineprivate |
|
inlineprivate |
|
inlineprivate |
|
inlinestaticprivate |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |