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