internal TestExecutionResult(TestCase testCase, TestExecutionOutcome outcome, Exception exception, TimeSpan executionTime) { Outcome = outcome; Exception = exception; ExecutionTime = executionTime; TestCase = testCase; }
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); } }