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