2 writes to IsPinned
Aspire.Tray.Tests (2)
src\Aspire.Tray\Common\TrayController.cs (2)
607
IsPinned
= pins.Contains(TrayAppHostPath.Normalize(host.AppHostPath)),
662
IsPinned
= saved.IsPinned,
15 references to IsPinned
Aspire.Tray.Tests (15)
TrayControllerPinPruningTests.cs (5)
64
Assert.True(Assert.Single(controller.State.AppHosts).
IsPinned
);
93
Assert.True(row.
IsPinned
);
214
Assert.True(Assert.Single(controller.State.AppHosts).
IsPinned
);
226
Assert.True(Assert.Single(controller.State.AppHosts).
IsPinned
);
279
Assert.True(Assert.Single(controller.State.AppHosts).
IsPinned
);
TrayControllerPreferencesTests.cs (1)
109
Assert.True(Assert.Single(controller.State.AppHosts).
IsPinned
);
TrayControllerSavedStateTests.cs (9)
193
Assert.True(row.
IsPinned
);
224
Assert.True(live.
IsPinned
);
240
Assert.True(offline.
IsPinned
);
254
Assert.True(controller.State.AppHosts[0].
IsPinned
);
259
Assert.False(Assert.Single(controller.State.AppHosts).
IsPinned
);
279
Assert.All(controller.State.AppHosts, row => Assert.True(row.
IsPinned
));
306
Assert.True(Assert.Single(controller.State.AppHosts).
IsPinned
);
314
Assert.True(Assert.Single(controller.State.AppHosts).
IsPinned
);
519
Assert.False(Assert.Single(controller.State.AppHosts).
IsPinned
);