32 references to TestOutcome
dotnet (32)
Commands\Test\MTP\Terminal\TerminalTestReporter.cs (25)
399TestOutcome outcome, 417case TestOutcome.Error: 418case TestOutcome.Timeout: 419case TestOutcome.Canceled: 420case TestOutcome.Fail: 423case TestOutcome.Passed: 426case TestOutcome.Skipped: 432if (outcome != TestOutcome.Passed || _options.ShowPassedTests) 460TestOutcome outcome, 468if (outcome == TestOutcome.Passed && !_options.ShowPassedTests) 475TestOutcome.Error or TestOutcome.Fail or TestOutcome.Canceled or TestOutcome.Timeout => TerminalColor.DarkRed, 476TestOutcome.Skipped => TerminalColor.DarkYellow, 477TestOutcome.Passed => TerminalColor.DarkGreen, 482TestOutcome.Fail or TestOutcome.Error => CliCommandStrings.FailedLowercase, 483TestOutcome.Skipped => CliCommandStrings.SkippedLowercase, 484TestOutcome.Canceled or TestOutcome.Timeout => $"{CliCommandStrings.FailedLowercase} ({CliCommandStrings.CancelledLowercase})", 485TestOutcome.Passed => CliCommandStrings.PassedLowercase, 540FormatErrorMessage(terminal, exceptions, TestOutcome.Error, i); 545private static void FormatErrorMessage(ITerminal terminal, FlatException[]? exceptions, TestOutcome outcome, int index) 561else if (outcome == TestOutcome.Fail)
Commands\Test\MTP\TestApplicationHandler.cs (7)
278private static TestOutcome ToOutcome(byte? testState) => testState switch 280TestStates.Passed => TestOutcome.Passed, 281TestStates.Skipped => TestOutcome.Skipped, 282TestStates.Failed => TestOutcome.Fail, 283TestStates.Error => TestOutcome.Error, 284TestStates.Timeout => TestOutcome.Timeout, 285TestStates.Cancelled => TestOutcome.Canceled,