WorkItem
A WorkItem may be an individual test case, a fixture or
a higher level grouping of tests. All WorkItems inherit
from the abstract WorkItem class, which uses the template
pattern to allow derived classes to perform work in
whatever way is needed.
A WorkItem is created with a particular TestExecutionContext
and is responsible for re-establishing that context in the
current thread before it begins or resumes execution.
The test actions to be performed before and after this test
The execution context
The test result
Gets the current state of the WorkItem
The test being executed by the work item
The unique id of the worker executing this item.
Event triggered when the item is complete
Construct a WorkItem for a particular test.
Creates a work item.
Cancel (abort or stop) a WorkItem
Execute the current work item, including any
child work items.
Initialize the TestExecutionContext. This must be done
before executing the WorkItem.
Method that performs actually performs the work. It should
set the State to WorkItemState.Complete when done.
Method called by the derived class when all work is complete