37 references to TestOutcome
dotnet-aot (37)
parent\dotnet\Commands\Test\MTP\Terminal\TerminalTestReporter.cs (30)
724TestOutcome outcome, 748case TestOutcome.Error: 749case TestOutcome.Timeout: 750case TestOutcome.Canceled: 751case TestOutcome.Fail: 754case TestOutcome.Passed: 757case TestOutcome.Skipped: 784private bool IsTestResultVisible(TestOutcome outcome) => outcome switch 786TestOutcome.Passed => (_options.ShowTestResults & TestResultVisibility.Passed) != 0, 787TestOutcome.Skipped => (_options.ShowTestResults & TestResultVisibility.Skipped) != 0, 788TestOutcome.Fail or TestOutcome.Error or TestOutcome.Timeout or TestOutcome.Canceled => 801TestOutcome outcome, 811TestOutcome.Error or TestOutcome.Fail or TestOutcome.Canceled or TestOutcome.Timeout => TerminalColor.DarkRed, 812TestOutcome.Skipped => TerminalColor.DarkYellow, 813TestOutcome.Passed => TerminalColor.DarkGreen, 818TestOutcome.Fail or TestOutcome.Error => CliCommandStrings.FailedLowercase, 819TestOutcome.Skipped => CliCommandStrings.SkippedLowercase, 820TestOutcome.Canceled or TestOutcome.Timeout => $"{CliCommandStrings.FailedLowercase} ({CliCommandStrings.CancelledLowercase})", 821TestOutcome.Passed => CliCommandStrings.PassedLowercase, 879FormatErrorMessage(terminal, exceptions, TestOutcome.Error, i); 884private static void FormatErrorMessage(ITerminal terminal, FlatException[]? exceptions, TestOutcome outcome, int index) 900else if (outcome == TestOutcome.Fail)
parent\dotnet\Commands\Test\MTP\TestApplicationHandler.cs (7)
656private static TestOutcome ToOutcome(byte? testState) => testState switch 658TestStates.Passed => TestOutcome.Passed, 659TestStates.Skipped => TestOutcome.Skipped, 660TestStates.Failed => TestOutcome.Fail, 661TestStates.Error => TestOutcome.Error, 662TestStates.Timeout => TestOutcome.Timeout, 663TestStates.Cancelled => TestOutcome.Canceled,