1 write to Root
Aspire.Tray.Tests (1)
Helpers\TestTrayBundle.cs (1)
16Root = Path.Combine(_directory.FullName, "layout with spaces");
26 references to Root
Aspire.Tray.Tests (26)
Helpers\TestTrayBundle.cs (1)
12public string AppPath => Path.Combine(Root, "tray", "Aspire Tray.app");
TrayLaunchCommandTests.cs (12)
23File.WriteAllText(Path.Combine(bundle.Root, "tray", "aspire-tray.exe"), ""); 24File.WriteAllText(Path.Combine(bundle.Root, "tray", "aspire-tray"), ""); 28remoteOptions.StartInfo.Environment[BundleDiscovery.BundleVersionDirectoryEnvVar] = bundle.Root; 57}, bundle.CliPath, bundle.Root, platform, leased.ToString(), remoteOptions)) 61Assert.False(BundleVersionLease.HasActiveLease(bundle.Root)); 62Assert.False(Directory.Exists(Path.Combine(bundle.Root, BundleVersionLease.LeasesDirectoryName))); 69var options = TrayOptions.Parse(["--cli", bundle.CliPath, "--bundle-root", bundle.Root]); 80"--cli", bundle.CliPath, "--bundle-root", bundle.Root 91new(bundle.CliPath, null, bundle.Root, null))); 101new(bundle.CliPath, null, bundle.Root, null))); 126"--cli", bundle.CliPath, "--bundle-root", bundle.Root, "--smoke-seconds", "20"])); 162"--cli", bundle.CliPath, "--bundle-root", bundle.Root, "--smoke-seconds", "120", "--smoke-interactive"]));
TrayStartupOptionsTests.cs (4)
18File.WriteAllText(Path.Combine(bundle.Root, "tray", "aspire-tray.exe"), ""); 19var startup = Path.Combine(bundle.Root, "installed & stable CLI"); 20var options = TrayOptions.Parse(["--cli", bundle.CliPath, "--bundle-root", bundle.Root, "--startup-cli", startup]); 26var expected = new[] { "--cli", bundle.CliPath, "--bundle-root", bundle.Root, "--startup-cli", startup };
WindowsTrayLaunchCommandTests.cs (9)
15var executable = Path.Combine(bundle.Root, "tray", "aspire-tray.exe"); 18var start = TrayLaunchCommand.CreateWindowsStartInfo(new(bundle.CliPath, null, bundle.Root, null)); 21Assert.Equal(Path.Combine(bundle.Root, "tray"), start.WorkingDirectory); 27Assert.Equal(new[] { "--cli", bundle.CliPath, "--bundle-root", bundle.Root }, start.ArgumentList); 35TrayLaunchCommand.CreateWindowsStartInfo(new(bundle.CliPath, null, bundle.Root, null))); 36Assert.Equal(Path.Combine(bundle.Root, "tray", "aspire-tray.exe"), error.FileName); 43File.WriteAllText(Path.Combine(bundle.Root, "tray", "aspire-tray.exe"), ""); 47TrayLaunchCommand.CreateWindowsStartInfo(new(bundle.CliPath, null, bundle.Root, null))); 58TrayLaunchCommand.CreateWindowsStartInfo(new(bundle.CliPath, 1, bundle.Root, null)));