31 references to TakeLast
AnalyzeCiFailure (1)
WorkflowRunEvidenceCollector.cs (1)
566
return string.Join('\n', lines.
TakeLast
(count: 200)) + "\n";
aspire (2)
Commands\RunCommand.cs (1)
811
.
TakeLast
(MaxDisplayedAppHostStartupOutputLines)
Utils\EnvironmentChecker\DcpConnectionChecker.cs (1)
403
.
TakeLast
(40)
Aspire.Cli.Tests (11)
Commands\AppHostLauncherTests.cs (1)
230
Assert.Equal(["--isolated", "false"], harness.ProcessFactory.CreatedArguments!.
TakeLast
(2));
Commands\NewCommandLocalTemplateTests.ConfiguredGitSourceObjects.cs (1)
97
options.Select(formatter).
TakeLast
(5));
Commands\NewCommandLocalTemplateTests.ConfiguredGitSources.cs (1)
142
options.Select(formatter).
TakeLast
(2));
Commands\NewCommandLocalTemplateTests.ConfiguredSources.cs (4)
317
options.Select(formatter).
TakeLast
(2));
342
groupedChoices.
TakeLast
(2).Select(choice => choice.Group));
343
Assert.Equal(["Same template", "Same template"], groupedChoices.
TakeLast
(2).Select(choice => choice.DisplayLabel));
593
["Same template (same) - company", "Same template (same) - company [[2]]"], labels.
TakeLast
(2));
Commands\NewCommandLocalTemplateTests.InitConfig.cs (3)
136
options.Select(formatter).
TakeLast
(2));
168
Assert.Single(interaction.GroupedSelectionPromptCalls).
TakeLast
(2).Select(choice => choice.Group));
195
options.Select(formatter).
TakeLast
(1));
Commands\NewCommandLocalTemplateTests.SourceListGit.cs (1)
238
options.Select(formatter).
TakeLast
(usesInheritedSource ? 2 : 1));
Aspire.Dashboard.Tests (1)
TelemetryRepositoryTests\TraceTests.cs (1)
1385
.
TakeLast
(MaxTraceCount)
Aspire.Hosting.Dotnet.Tests (1)
DotnetProjectLaunchProfileTests.cs (1)
57
Assert.Equal(["--", "--profile-source", expectedSource], arguments.
TakeLast
(3));
Aspire.Hosting.Native.Server (1)
Auxiliary\NativeAuxiliaryBackchannel.cs (1)
343
ordered = ordered.
TakeLast
(request.Tail.Value);
Aspire.Hosting.Tests (1)
Publishing\ResourceContainerImageManagerTests.cs (1)
1066
outputEvents.
TakeLast
(ProcessSpec.DefaultRetainedOutputLineCount).Select(static line => line.Value),
Aspire.Hosting.TestUtilities (1)
Utils\TestProcessRunner.cs (1)
122
processOutput = processOutput.
TakeLast
(retainedOutputLineCount).ToArray();
Aspire.Tray.Tests (7)
LinuxTrayTests.cs (1)
90
menu.
TakeLast
(3).Select(item => item.Action));
TrayPanelTests.cs (4)
991
Assert.All(scene.Targets.
TakeLast
(3), button => Assert.Equal(scene.Height - TrayPanel.FooterHeight / 2, button.Bounds.CenterY));
1306
scene.Accessibility.
TakeLast
(3).Select(element => element.Target!.Kind));
1422
panel.Scene.Targets.
TakeLast
(3).Select(target => target.Tooltip));
1451
var footer = scene.Targets.
TakeLast
(3).ToList();
TraySavedStateTests.cs (2)
50
Assert.Equal(paths.
TakeLast
(10).Reverse(), saved.AppHosts.Where(host => host.IsRecent).Select(host => host.AppHostPath));
74
Assert.Equal(paths.
TakeLast
(limit).Reverse(), state.AppHosts.Where(host => host.IsRecent).Select(host => host.AppHostPath));
Microsoft.ML.Samples (2)
Dynamic\Trainers\Clustering\KMeans.cs (1)
51
foreach (var p in predictions.
TakeLast
(3))
Dynamic\Trainers\Clustering\KMeansWithOptions.cs (1)
59
foreach (var p in predictions.
TakeLast
(3))
testhost (1)
parent\testhost.x86\TestHostTraceListener.cs (1)
69
var stackTrace = new StackTrace(frames.
TakeLast
(frameCount)).ToString();
testhost.arm64 (1)
parent\testhost.x86\TestHostTraceListener.cs (1)
69
var stackTrace = new StackTrace(frames.
TakeLast
(frameCount)).ToString();
testhost.x86 (1)
TestHostTraceListener.cs (1)
69
var stackTrace = new StackTrace(frames.
TakeLast
(frameCount)).ToString();