IGLib
1.7.2
The IGLib base library EXTENDED - with other lilbraries and applications.
|
A SimpleWorkItem represents a single test case and is marked as completed immediately upon execution. This class is also used for skipped or ignored test suites. More...
Public Member Functions | |
SimpleWorkItem (TestMethod test, ITestFilter filter) | |
Construct a simple work item for a test. 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 performs actually performs the work. More... | |
![]() | |
void | WorkItemComplete () |
Method called by the derived class when all work is complete More... | |
Private Attributes | |
TestCommand | _command |
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 SimpleWorkItem represents a single test case and is marked as completed immediately upon execution. This class is also used for skipped or ignored test suites.
|
inline |
Construct a simple work item for a test.
test | The test to be executed |
filter | The filter used to select this test |
References NUnit.Framework.Interfaces.ITestFilter.IsExplicitMatch(), NUnit.Framework.Internal.Execution.CommandBuilder.MakeSkipCommand(), NUnit.Framework.Internal.Execution.CommandBuilder.MakeTestCommand(), and NUnit.Framework.Internal.Test.RunState.
|
inlineprotectedvirtual |
Method that performs actually performs the work.
Implements NUnit.Framework.Internal.Execution.WorkItem.
References NUnit.Framework.Internal.Commands.TestCommand.Execute().
|
private |