public void PerformWork() { SetupContext(); try { testResult = test.MakeTestCommand().Execute(this.context); } finally { WorkItemComplete(); } }
public void PerformWork() { SetupContext(); try { if (IncrementalTestRunner.testSkipCount > 0) { --IncrementalTestRunner.testSkipCount; testResult = ((Test)test).MakeTestResult(); testResult.SetResult(ResultState.Success); } else { testResult = test.MakeTestCommand().Execute(this.context); } } finally { WorkItemComplete(); } }
/// <summary> /// Construct a simple work item for a test. /// </summary> /// <param name="test">The test to be executed</param> public SimpleWorkItem(TestMethod test) : base(test) { _command = test.MakeTestCommand(); }
/// <summary> /// Construct a simple work item for a test. /// </summary> /// <param name="test">The test to be executed</param> /// <param name="context">The execution context to be used</param> public SimpleWorkItem(TestMethod test, TestExecutionContext context) : base(test, context) { _command = test.MakeTestCommand(); }
/// <summary> /// Construct a simple work item for a test. /// </summary> /// <param name="test">The test to be executed</param> public SimpleWorkItem(TestMethod test, FinallyDelegate fd) : base(test, fd) { _command = test.MakeTestCommand(); }
/// <summary> /// Construct a simple work item for a test. /// </summary> /// <param name="test">The test to be executed</param> /// <param name="context">The execution context to be used</param> public SimpleWorkItem(TestMethod test, TestExecutionContext context) : base(test, context) { _command = test.MakeTestCommand(); }
/// <summary> /// Construct a simple work item for a test. /// </summary> /// <param name="test">The test to be executed</param> public SimpleWorkItem(TestMethod test) : base(test) { _command = test.MakeTestCommand(); }
/// <summary> /// Construct a simple work item for a test. /// </summary> /// <param name="test">The test to be executed</param> public SimpleWorkItem(TestMethod test, FinallyDelegate fd) : base(test, fd) { _command = test.MakeTestCommand(); }