5 writes to IsPinned
Aspire.Tray.Tests (5)
Helpers\TrayPanelSamples.cs (1)
27
IsPinned
= pinned,
LinuxTrayTests.cs (2)
76
var running = TrayPanelSamples.Running(Path.GetFullPath("Running.AppHost/apphost.cs"), 42) with {
IsPinned
= true };
614
IsRunning = false,
IsPinned
= true, CanStart = true
src\Aspire.Tray\Common\TrayController.cs (2)
588
IsPinned
= pins.Contains(TrayAppHostPath.Normalize(host.AppHostPath)),
647
IsPinned
= saved.IsPinned,
20 references to IsPinned
Aspire.Tray.Tests (20)
LinuxTrayTests.cs (1)
363
Assert.True(Assert.Single(displayed.AppHosts).
IsPinned
);
src\Aspire.Tray\Common\TrayPanel.cs (1)
1386
actions.Add(host.
IsPinned
src\Aspire.Tray\Linux\LinuxTrayApplication.cs (2)
492
if (!host.IsRunning && !host.
IsPinned
)
517
controller.SetPinned(host!.Id.AppHostPath, !host.
IsPinned
);
src\Aspire.Tray\Linux\LinuxTrayMenu.cs (1)
87
actions.Add(new(host.
IsPinned
? "Unpin" : "Pin", LinuxTrayAction.TogglePin, host));
TrayControllerPinPruningTests.cs (5)
63
Assert.True(Assert.Single(controller.State.AppHosts).
IsPinned
);
92
Assert.True(row.
IsPinned
);
213
Assert.True(Assert.Single(controller.State.AppHosts).
IsPinned
);
224
Assert.True(Assert.Single(controller.State.AppHosts).
IsPinned
);
276
Assert.True(Assert.Single(controller.State.AppHosts).
IsPinned
);
TrayControllerPreferencesTests.cs (1)
64
Assert.True(Assert.Single(controller.State.AppHosts).
IsPinned
);
TrayControllerSavedStateTests.cs (9)
230
Assert.True(row.
IsPinned
);
261
Assert.True(live.
IsPinned
);
277
Assert.True(offline.
IsPinned
);
291
Assert.True(controller.State.AppHosts[0].
IsPinned
);
296
Assert.False(Assert.Single(controller.State.AppHosts).
IsPinned
);
316
Assert.All(controller.State.AppHosts, row => Assert.True(row.
IsPinned
));
343
Assert.True(Assert.Single(controller.State.AppHosts).
IsPinned
);
351
Assert.True(Assert.Single(controller.State.AppHosts).
IsPinned
);
560
Assert.False(Assert.Single(controller.State.AppHosts).
IsPinned
);