1 write to Root
Aspire.Tray.Tests (1)
Helpers\TestTrayBundle.cs (1)
16Root = Path.Combine(_directory.FullName, "layout with spaces");
20 references to Root
Aspire.Tray.Tests (20)
Helpers\TestTrayBundle.cs (1)
12public string AppPath => Path.Combine(Root, "tray", "Aspire Tray.app");
TrayLaunchCommandTests.cs (6)
14var options = TrayOptions.Parse(["--cli", bundle.CliPath, "--bundle-root", bundle.Root]); 25"--cli", bundle.CliPath, "--bundle-root", bundle.Root 36new(bundle.CliPath, null, bundle.Root, null))); 46new(bundle.CliPath, null, bundle.Root, null))); 71"--cli", bundle.CliPath, "--bundle-root", bundle.Root, "--smoke-seconds", "20"])); 107"--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)));