31 references to TakeLast
AnalyzeCiFailure (1)
WorkflowRunEvidenceCollector.cs (1)
566return 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)
230Assert.Equal(["--isolated", "false"], harness.ProcessFactory.CreatedArguments!.TakeLast(2));
Commands\NewCommandLocalTemplateTests.ConfiguredGitSourceObjects.cs (1)
97options.Select(formatter).TakeLast(5));
Commands\NewCommandLocalTemplateTests.ConfiguredGitSources.cs (1)
142options.Select(formatter).TakeLast(2));
Commands\NewCommandLocalTemplateTests.ConfiguredSources.cs (4)
317options.Select(formatter).TakeLast(2)); 342groupedChoices.TakeLast(2).Select(choice => choice.Group)); 343Assert.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)
136options.Select(formatter).TakeLast(2)); 168Assert.Single(interaction.GroupedSelectionPromptCalls).TakeLast(2).Select(choice => choice.Group)); 195options.Select(formatter).TakeLast(1));
Commands\NewCommandLocalTemplateTests.SourceListGit.cs (1)
238options.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)
57Assert.Equal(["--", "--profile-source", expectedSource], arguments.TakeLast(3));
Aspire.Hosting.Native.Server (1)
Auxiliary\NativeAuxiliaryBackchannel.cs (1)
343ordered = ordered.TakeLast(request.Tail.Value);
Aspire.Hosting.Tests (1)
Publishing\ResourceContainerImageManagerTests.cs (1)
1066outputEvents.TakeLast(ProcessSpec.DefaultRetainedOutputLineCount).Select(static line => line.Value),
Aspire.Hosting.TestUtilities (1)
Utils\TestProcessRunner.cs (1)
122processOutput = processOutput.TakeLast(retainedOutputLineCount).ToArray();
Aspire.Tray.Tests (7)
LinuxTrayTests.cs (1)
90menu.TakeLast(3).Select(item => item.Action));
TrayPanelTests.cs (4)
991Assert.All(scene.Targets.TakeLast(3), button => Assert.Equal(scene.Height - TrayPanel.FooterHeight / 2, button.Bounds.CenterY)); 1306scene.Accessibility.TakeLast(3).Select(element => element.Target!.Kind)); 1422panel.Scene.Targets.TakeLast(3).Select(target => target.Tooltip)); 1451var footer = scene.Targets.TakeLast(3).ToList();
TraySavedStateTests.cs (2)
50Assert.Equal(paths.TakeLast(10).Reverse(), saved.AppHosts.Where(host => host.IsRecent).Select(host => host.AppHostPath)); 74Assert.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)
51foreach (var p in predictions.TakeLast(3))
Dynamic\Trainers\Clustering\KMeansWithOptions.cs (1)
59foreach (var p in predictions.TakeLast(3))
testhost (1)
parent\testhost.x86\TestHostTraceListener.cs (1)
69var stackTrace = new StackTrace(frames.TakeLast(frameCount)).ToString();
testhost.arm64 (1)
parent\testhost.x86\TestHostTraceListener.cs (1)
69var stackTrace = new StackTrace(frames.TakeLast(frameCount)).ToString();
testhost.x86 (1)
TestHostTraceListener.cs (1)
69var stackTrace = new StackTrace(frames.TakeLast(frameCount)).ToString();