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