32 references to TestOutcome
dotnet (32)
Commands\Test\MTP\Terminal\TerminalTestReporter.cs (25)
719TestOutcome outcome, 743case TestOutcome.Error: 744case TestOutcome.Timeout: 745case TestOutcome.Canceled: 746case TestOutcome.Fail: 749case TestOutcome.Passed: 752case TestOutcome.Skipped: 759if (outcome != TestOutcome.Passed || _options.ShowPassedTests) 787TestOutcome outcome, 795if (outcome == TestOutcome.Passed && !_options.ShowPassedTests) 802TestOutcome.Error or TestOutcome.Fail or TestOutcome.Canceled or TestOutcome.Timeout => TerminalColor.DarkRed, 803TestOutcome.Skipped => TerminalColor.DarkYellow, 804TestOutcome.Passed => TerminalColor.DarkGreen, 809TestOutcome.Fail or TestOutcome.Error => CliCommandStrings.FailedLowercase, 810TestOutcome.Skipped => CliCommandStrings.SkippedLowercase, 811TestOutcome.Canceled or TestOutcome.Timeout => $"{CliCommandStrings.FailedLowercase} ({CliCommandStrings.CancelledLowercase})", 812TestOutcome.Passed => CliCommandStrings.PassedLowercase, 870FormatErrorMessage(terminal, exceptions, TestOutcome.Error, i); 875private static void FormatErrorMessage(ITerminal terminal, FlatException[]? exceptions, TestOutcome outcome, int index) 891else if (outcome == TestOutcome.Fail)
Commands\Test\MTP\TestApplicationHandler.cs (7)
640private static TestOutcome ToOutcome(byte? testState) => testState switch 642TestStates.Passed => TestOutcome.Passed, 643TestStates.Skipped => TestOutcome.Skipped, 644TestStates.Failed => TestOutcome.Fail, 645TestStates.Error => TestOutcome.Error, 646TestStates.Timeout => TestOutcome.Timeout, 647TestStates.Cancelled => TestOutcome.Canceled,