18 references to Normalize
Aspire.Tray.Tests (18)
src\Aspire.Tray\Common\FileTraySavedStateStore.cs (3)
29_path = TrayAppHostPath.Normalize(path); 37Path.Combine(TrayAppHostPath.Normalize(legacyDirectory), "apphosts.json")); 182var normalized = TrayAppHostPath.Normalize(host.AppHostPath);
src\Aspire.Tray\Common\TrayConfiguration.cs (2)
38return TrayAppHostPath.Normalize(home); 46settingsPath = TrayAppHostPath.Normalize(settingsPath);
src\Aspire.Tray\Common\TrayController.cs (9)
140var path = TrayAppHostPath.Normalize(appHostPath); 148var path = TrayAppHostPath.Normalize(appHostPath); 198var path = TrayAppHostPath.Normalize(appHostPath); 242if (_snapshot.AppHosts.Any(host => TrayAppHostPath.Comparer.Equals(TrayAppHostPath.Normalize(host.AppHostPath), path))) 324.Select(host => TrayAppHostPath.Normalize(host.AppHostPath)) 333var path = TrayAppHostPath.Normalize(host.AppHostPath); 496var protectedPaths = _snapshot.AppHosts.Select(host => TrayAppHostPath.Normalize(host.AppHostPath)) 588IsPinned = pins.Contains(TrayAppHostPath.Normalize(host.AppHostPath)), 593var listedPaths = _snapshot.AppHosts.Select(host => TrayAppHostPath.Normalize(host.AppHostPath))
src\Aspire.Tray\Common\TraySavedState.cs (1)
117var normalized = Normalize(path);
TrayControllerPreferencesTests.cs (2)
22Assert.Equal(TrayAppHostPath.Normalize(path), Assert.Single(controller.State.AppHosts).Id.AppHostPath); 27Assert.Equal(new SavedAppHost(TrayAppHostPath.Normalize(path), false, true), Assert.Single(new FileTraySavedStateStore(directory.StatePath).Load().AppHosts));
TraySavedStateTests.cs (1)
239Assert.Throws<ArgumentException>(() => TrayAppHostPath.Normalize("relative/apphost.cs"));