2 implementations of Append
dotnet (2)
Commands\Test\MTP\Terminal\AnsiTerminal.cs (1)
65
public void
Append
(string value)
Commands\Test\MTP\Terminal\SimpleTerminalBase.cs (1)
28
public virtual void
Append
(string value)
79 references to Append
dotnet (79)
Commands\Test\MTP\Terminal\HumanReadableDurationFormatter.cs (5)
26
terminal.
Append
($"{duration.Days}d");
32
terminal.
Append
(GetFormattedPart(duration.Hours, hasParentValue, "h"));
38
terminal.
Append
(GetFormattedPart(duration.Minutes, hasParentValue, "m"));
44
terminal.
Append
(GetFormattedPart(duration.Seconds, hasParentValue, "s"));
50
terminal.
Append
(GetFormattedPart(duration.Milliseconds, hasParentValue, "ms", paddingWitdh: 3));
Commands\Test\MTP\Terminal\TerminalTestReporter.cs (74)
162
terminal.
Append
($"({string.Format(CliCommandStrings.Try, currentAttemptNumber)}) ");
166
terminal.
Append
(_isDiscovery ? CliCommandStrings.DiscoveringTestsFrom : CliCommandStrings.RunningTestsFrom);
245
terminal.
Append
(SingleIndentation);
249
terminal.
Append
(DoubleIndentation);
250
terminal.
Append
("- ");
253
terminal.
Append
(CliCommandStrings.ForTest);
254
terminal.
Append
(" '");
255
terminal.
Append
(artifact.TestName);
256
terminal.
Append
("': ");
321
terminal.
Append
(CliCommandStrings.TestRunSummary);
326
terminal.
Append
(CliCommandStrings.Aborted);
330
terminal.
Append
(string.Format(CultureInfo.CurrentCulture, CliCommandStrings.MinimumExpectedTestsPolicyViolation, totalTests, _options.MinimumExpectedTests));
339
terminal.
Append
(string.Format(CultureInfo.CurrentCulture, "{0}!", CliCommandStrings.Failed));
343
terminal.
Append
(CliCommandStrings.ZeroTestsRan);
347
terminal.
Append
(string.Format(CultureInfo.CurrentCulture, "{0}!", CliCommandStrings.Failed));
351
terminal.
Append
(string.Format(CultureInfo.CurrentCulture, "{0}!", CliCommandStrings.Passed));
358
terminal.
Append
(" - ");
369
terminal.
Append
(SingleIndentation);
450
terminal.
Append
(durationText);
487
terminal.
Append
($"{SingleIndentation}{CliCommandStrings.RetriedColon} ");
525
terminal.
Append
(SingleIndentation);
530
terminal.
Append
(DoubleIndentation);
550
terminal.
Append
(SingleIndentation);
557
terminal.
Append
(displayName);
560
terminal.
Append
(CliCommandStrings.FlakyTransition);
561
terminal.
Append
(" (");
562
terminal.
Append
(string.Format(CultureInfo.CurrentCulture, CliCommandStrings.FlakyAttempts, attempts));
600
terminal.
Append
(SingleIndentation);
605
terminal.
Append
(DoubleIndentation);
626
terminal.
Append
(SingleIndentation);
635
terminal.
Append
(displayName);
663
terminal.
Append
(SingleIndentation);
690
terminal.
Append
(_options.AllowZeroTests ? CliCommandStrings.PassedLowercase : CliCommandStrings.ZeroTestsRan);
699
terminal.
Append
(text);
705
terminal.
Append
(CliCommandStrings.PassedLowercase);
817
terminal.
Append
(outcomeText);
821
terminal.
Append
($" ({string.Format(CliCommandStrings.Try, attempt)})");
825
terminal.
Append
(displayName);
836
terminal.
Append
(SingleIndentation);
837
terminal.
Append
(informativeMessage);
843
terminal.
Append
(SingleIndentation);
844
terminal.
Append
(CliCommandStrings.FromFile);
868
terminal.
Append
(SingleIndentation);
869
terminal.
Append
("--->");
915
terminal.
Append
(SingleIndentation);
918
terminal.
Append
(SingleIndentation);
951
terminal.
Append
(SingleIndentation);
955
terminal.
Append
(SingleIndentation);
967
terminal.
Append
(" (");
970
terminal.
Append
(targetFramework);
979
terminal.
Append
(architecture);
988
terminal.
Append
(DoubleIndentation);
993
terminal.
Append
(CliCommandStrings.StackFrameAt);
998
terminal.
Append
(match.Groups["code"].Value);
1002
terminal.
Append
(match.Groups["code1"].Value);
1008
terminal.
Append
(CliCommandStrings.StackFrameIn);
1037
terminal.
Append
(indent);
1050
terminal.
Append
(indent);
1051
terminal.
Append
(line);
1127
terminal.
Append
(CliCommandStrings.ZeroTestsRan);
1136
terminal.
Append
(CliCommandStrings.ExitCode);
1137
terminal.
Append
(": ");
1251
terminal.
Append
(count.ToString(CultureInfo.CurrentCulture));
1294
terminal.
Append
(text);
1381
terminal.
Append
(string.Format(CultureInfo.CurrentCulture, CliCommandStrings.DiscoveredTestsInAssembly, discoveredTestNames.Count));
1382
terminal.
Append
(" - ");
1389
terminal.
Append
(SingleIndentation);
1390
terminal.
Append
(test.DisplayName);
1393
terminal.
Append
(" [");
1394
terminal.
Append
(test.FilePath);
1398
terminal.
Append
(test.LineNumber.Value.ToString(CultureInfo.InvariantCulture));
1426
terminal.
Append
(CliCommandStrings.Aborted);
1501
terminal.
Append
(Encoding.UTF8.GetString(buffer.GetBuffer(), 0, (int)buffer.Length));
1518
_terminalWithProgress.WriteToTerminal(terminal => terminal.
Append
($"Found {testCount} tests"));