15 references to SetPinned
Aspire.Tray.Tests (15)
src\Aspire.Tray\Linux\LinuxTrayApplication.cs (1)
517
controller.
SetPinned
(host!.Id.AppHostPath, !host.IsPinned);
TrayControllerPreferencesTests.cs (5)
23
controller.
SetPinned
(path, false);
80
controller.
SetPinned
(paths[0], true);
97
controller.
SetPinned
(paths[^1], true);
110
controller.
SetPinned
(paths[^2], true);
111
controller.
SetPinned
(paths[^2], false);
TrayControllerSavedStateTests.cs (9)
28
controller.
SetPinned
(path, pinned);
257
controller.
SetPinned
(path, true);
295
controller.
SetPinned
(path, false);
314
controller.
SetPinned
(first.AppHostPath, true);
323
controller.
SetPinned
(first.AppHostPath, false);
339
controller.
SetPinned
(host.AppHostPath, true);
352
controller.
SetPinned
(host.AppHostPath, false);
383
controller.
SetPinned
(hosts[10].AppHostPath, true);
559
Assert.Throws<InvalidOperationException>(() => controller.
SetPinned
(host.AppHostPath, true));