32 references to TestOutcome
dotnet (32)
Commands\Test\MTP\Terminal\TerminalTestReporter.cs (25)
458TestOutcome outcome, 476case TestOutcome.Error: 477case TestOutcome.Timeout: 478case TestOutcome.Canceled: 479case TestOutcome.Fail: 482case TestOutcome.Passed: 485case TestOutcome.Skipped: 491if (outcome != TestOutcome.Passed || _options.ShowPassedTests) 519TestOutcome outcome, 527if (outcome == TestOutcome.Passed && !_options.ShowPassedTests) 534TestOutcome.Error or TestOutcome.Fail or TestOutcome.Canceled or TestOutcome.Timeout => TerminalColor.DarkRed, 535TestOutcome.Skipped => TerminalColor.DarkYellow, 536TestOutcome.Passed => TerminalColor.DarkGreen, 541TestOutcome.Fail or TestOutcome.Error => CliCommandStrings.FailedLowercase, 542TestOutcome.Skipped => CliCommandStrings.SkippedLowercase, 543TestOutcome.Canceled or TestOutcome.Timeout => $"{CliCommandStrings.FailedLowercase} ({CliCommandStrings.CancelledLowercase})", 544TestOutcome.Passed => CliCommandStrings.PassedLowercase, 602FormatErrorMessage(terminal, exceptions, TestOutcome.Error, i); 607private static void FormatErrorMessage(ITerminal terminal, FlatException[]? exceptions, TestOutcome outcome, int index) 623else if (outcome == TestOutcome.Fail)
Commands\Test\MTP\TestApplicationHandler.cs (7)
441private static TestOutcome ToOutcome(byte? testState) => testState switch 443TestStates.Passed => TestOutcome.Passed, 444TestStates.Skipped => TestOutcome.Skipped, 445TestStates.Failed => TestOutcome.Fail, 446TestStates.Error => TestOutcome.Error, 447TestStates.Timeout => TestOutcome.Timeout, 448TestStates.Cancelled => TestOutcome.Canceled,