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