21 references to Running
Aspire.Tray.Tests (21)
src\Aspire.Tray\Common\TrayPanel.cs (6)
748
AddSection(PanelSection.
Running
, running, expanded: true);
869
item.Section == PanelSection.
Running
&& duplicateNames.Contains(item.Host!.DisplayName), palette);
989
PanelSection.
Running
=> "RUNNING",
997
AddLabel(section == PanelSection.
Running
? "section.running" : "section.pinned",
998
section == PanelSection.
Running
? "Running" : "Pinned", labelBounds, chrome: false);
1095
PanelSection.
Running
=> _state.AppHosts.Where(host => host.Id.AppHostPid != 0),
TrayPanelTests.cs (15)
134
Assert.Equal([PanelSection.
Running
, PanelSection.
Running
, PanelSection.
Running
, PanelSection.Pinned],
193
Assert.Equal((PanelSection.
Running
, host.Id), panel.ActionsRow);
224
var target = panel.Scene.Targets.Single(target => target.Key == new PanelTargetKey(kind, PanelSection.
Running
, host.Id, item));
274
Assert.Equal((PanelSection.
Running
, state.AppHosts[1].Id), panel.ActionsRow);
291
Assert.Equal((PanelSection.
Running
, host), panel.ActionsRow);
293
Assert.Equal(new PanelTargetKey(PanelTargetKind.OpenInMenu, PanelSection.
Running
, host), panel.FocusedTarget);
297
Assert.Equal(new PanelTargetKey(PanelTargetKind.OpenIn, PanelSection.
Running
, host, 1), panel.FocusedTarget);
301
Assert.Equal(new PanelTargetKey(PanelTargetKind.OpenInMenu, PanelSection.
Running
, host), panel.FocusedTarget);
304
Assert.Equal(new PanelTargetKey(PanelTargetKind.ShowInFolder, PanelSection.
Running
, host), panel.FocusedTarget);
323
Assert.Equal((PanelSection.
Running
, host.Id), panel.ActionsRow);
505
Assert.Equal(new PanelTargetKey(PanelTargetKind.Row, PanelSection.
Running
, state.AppHosts[0].Id), panel.FocusedTarget);
511
Assert.Equal(new PanelTargetKey(PanelTargetKind.Row, PanelSection.
Running
, state.AppHosts[^1].Id), panel.FocusedTarget);
533
Assert.DoesNotContain(new PanelTargetKey(PanelTargetKind.Dashboard, PanelSection.
Running
, state.AppHosts[2].Id), visited);