NUnit.Framework.Internal.Execution.WorkItem
Construct a WorkItem for a particular test.
Construct a work Item that wraps another work Item.
Wrapper items are used to represent independently
dispatched tasks, which form part of the execution
of a single test, such as OneTimeTearDown.
protected List<SetUpTearDownItem> BuildSetUpTearDownList(IMethodInfo[] setUpMethods, IMethodInfo[] tearDownMethods, IMethodValidator methodValidator = null)
Builds the set up tear down list.
Cancel (abort or stop) a WorkItem
Changes the result of the test, logging the old and new states
Standard Dispose
Execute the current work item, including any
child work items.
Initialize the TestExecutionContext. This must be done
before executing the WorkItem.
Marks the WorkItem as NotRunnable.
Method that performs actually performs the work. It should
set the State to WorkItemState.Complete when done.
Wait until the execution of this item is complete
Method called by the derived class when all work is complete