Exemplo n.º 1
0
 internal TestExecutionResult(TestCase testCase, TestExecutionOutcome outcome, Exception exception,
                              TimeSpan executionTime)
 {
     Outcome       = outcome;
     Exception     = exception;
     ExecutionTime = executionTime;
     TestCase      = testCase;
 }
Exemplo n.º 2
0
        public static TestOutcome ToVsResultOutcome(this TestExecutionOutcome outcome)
        {
            switch (outcome)
            {
            case TestExecutionOutcome.Invalid:
                return(TestOutcome.NotFound);

            case TestExecutionOutcome.Failure:
                return(TestOutcome.Failed);

            case TestExecutionOutcome.Success:
                return(TestOutcome.Passed);

            default:
                throw new ArgumentOutOfRangeException(nameof(outcome), outcome, null);
            }
        }