Exemplo n.º 1
0
 private void CreateResult()
 {
     _currentTestStepResult             = CreateTestStepResult(_currentStep as ITestStep);
     _currentTestStepResult.DateStarted = DateTime.Now;
 }
Exemplo n.º 2
0
 private void SetTestStepResultAndSaveToIteration(ITestActionResult testResult, TestOutcome testOutcome)
 {
     SetTestStepResult(testResult, testOutcome);
     _iteration.Actions.Add(testResult);
 }
Exemplo n.º 3
0
 private void SetTestStepResult(ITestActionResult testResult, TestOutcome testOutcome)
 {
     testResult.Outcome       = testOutcome;
     testResult.DateCompleted = DateTime.Now;
     testResult.Duration      = testResult.DateCompleted.Subtract(testResult.DateStarted);
 }
Exemplo n.º 4
0
 /// <summary>
 /// Initializes a new instance of the <see cref="TfsTestActionResult"/> class.
 /// </summary>
 /// <param name="testActionResult">The wrapped test action result.</param>
 /// <param name="stepNumber">The step number of this result as defined in the tested test case.</param>
 /// <param name="testAction">The original test action.</param>
 public TfsTestActionResult(ITestActionResult testActionResult, string stepNumber, ITestAction testAction)
 {
     _testAction       = testAction;
     _testActionResult = testActionResult;
     StepNumber        = stepNumber;
 }