/// <summary> /// Construct a WorkItem for a particular test. /// </summary> /// <param name="test">The test that the WorkItem will run</param> /// <param name="context">The context to be used for running this test</param> public WorkItem(Test test, TestExecutionContext context) { _test = test; _context = context.Save(); testResult = test.MakeTestResult(); _command = test.GetTestCommand(); _state = WorkItemState.Ready; }