21 references to Running
Aspire.Tray.Tests (21)
src\Aspire.Tray\Common\TrayPanel.cs (6)
854AddSection(PanelSection.Running, running, expanded: true); 998item.Section == PanelSection.Running && duplicateNames.Contains(item.Host!.DisplayName), palette); 1249PanelSection.Running => "RUNNING", 1257AddLabel(section == PanelSection.Running ? "section.running" : "section.pinned", 1258section == PanelSection.Running ? "Running" : "Pinned", labelBounds, chrome: false); 1356PanelSection.Running => _state.AppHosts.Where(host => host.Id.AppHostPid != 0),
TrayPanelTests.cs (15)
174Assert.Equal([PanelSection.Running, PanelSection.Running, PanelSection.Running, PanelSection.Pinned], 233Assert.Equal((PanelSection.Running, host.Id), panel.ActionsRow); 264var target = panel.Scene.Targets.Single(target => target.Key == new PanelTargetKey(kind, PanelSection.Running, host.Id, item)); 314Assert.Equal((PanelSection.Running, state.AppHosts[1].Id), panel.ActionsRow); 331Assert.Equal((PanelSection.Running, host), panel.ActionsRow); 333Assert.Equal(new PanelTargetKey(PanelTargetKind.OpenInMenu, PanelSection.Running, host), panel.FocusedTarget); 337Assert.Equal(new PanelTargetKey(PanelTargetKind.OpenIn, PanelSection.Running, host, 1), panel.FocusedTarget); 341Assert.Equal(new PanelTargetKey(PanelTargetKind.OpenInMenu, PanelSection.Running, host), panel.FocusedTarget); 344Assert.Equal(new PanelTargetKey(PanelTargetKind.ShowInFolder, PanelSection.Running, host), panel.FocusedTarget); 363Assert.Equal((PanelSection.Running, host.Id), panel.ActionsRow); 609Assert.Equal(new PanelTargetKey(PanelTargetKind.Row, PanelSection.Running, state.AppHosts[0].Id), panel.FocusedTarget); 615Assert.Equal(new PanelTargetKey(PanelTargetKind.Row, PanelSection.Running, state.AppHosts[^1].Id), panel.FocusedTarget); 637Assert.DoesNotContain(new PanelTargetKey(PanelTargetKind.Dashboard, PanelSection.Running, state.AppHosts[2].Id), visited);