Ejemplo n.º 1
0
 public void PerformWork()
 {
     SetupContext();
     try
     {
         testResult = test.MakeTestCommand().Execute(this.context);
     }
     finally
     {
         WorkItemComplete();
     }
 }
Ejemplo n.º 2
0
 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();
     }
 }
Ejemplo n.º 3
0
 /// <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();
 }
Ejemplo n.º 4
0
 /// <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();
 }
Ejemplo n.º 5
0
 /// <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();
 }
Ejemplo n.º 6
0
 /// <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();
 }
Ejemplo n.º 7
0
 /// <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();
 }
Ejemplo n.º 8
0
 /// <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();
 }