public static VsTestOutcome ToVsTestOutcome(this TestOutcome testOutcome) { switch (testOutcome) { case TestOutcome.Passed: return(VsTestOutcome.Passed); case TestOutcome.Failed: return(VsTestOutcome.Failed); case TestOutcome.Skipped: return(VsTestOutcome.Skipped); case TestOutcome.None: return(VsTestOutcome.None); case TestOutcome.NotFound: return(VsTestOutcome.NotFound); default: throw new Exception(); } }
public static VsTestOutcome ToVsTestOutcome(this TestOutcome testOutcome) { switch (testOutcome) { case TestOutcome.Passed: return(VsTestOutcome.Passed); case TestOutcome.Failed: return(VsTestOutcome.Failed); case TestOutcome.Skipped: return(VsTestOutcome.Skipped); case TestOutcome.None: return(VsTestOutcome.None); case TestOutcome.NotFound: return(VsTestOutcome.NotFound); default: throw new InvalidOperationException($"Unknown enum literal: {testOutcome}"); } }