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