1 write to Root
Aspire.Tray.Tests (1)
Helpers\TestTrayBundle.cs (1)
16
Root
= Path.Combine(_directory.FullName, "layout with spaces");
20 references to Root
Aspire.Tray.Tests (20)
Helpers\TestTrayBundle.cs (1)
12
public string AppPath => Path.Combine(
Root
, "tray", "Aspire Tray.app");
TrayLaunchCommandTests.cs (6)
14
var options = TrayOptions.Parse(["--cli", bundle.CliPath, "--bundle-root", bundle.
Root
]);
25
"--cli", bundle.CliPath, "--bundle-root", bundle.
Root
36
new(bundle.CliPath, null, bundle.
Root
, null)));
46
new(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)
18
File.WriteAllText(Path.Combine(bundle.
Root
, "tray", "aspire-tray.exe"), "");
19
var startup = Path.Combine(bundle.
Root
, "installed & stable CLI");
20
var options = TrayOptions.Parse(["--cli", bundle.CliPath, "--bundle-root", bundle.
Root
, "--startup-cli", startup]);
26
var expected = new[] { "--cli", bundle.CliPath, "--bundle-root", bundle.
Root
, "--startup-cli", startup };
WindowsTrayLaunchCommandTests.cs (9)
15
var executable = Path.Combine(bundle.
Root
, "tray", "aspire-tray.exe");
18
var start = TrayLaunchCommand.CreateWindowsStartInfo(new(bundle.CliPath, null, bundle.
Root
, null));
21
Assert.Equal(Path.Combine(bundle.
Root
, "tray"), start.WorkingDirectory);
27
Assert.Equal(new[] { "--cli", bundle.CliPath, "--bundle-root", bundle.
Root
}, start.ArgumentList);
35
TrayLaunchCommand.CreateWindowsStartInfo(new(bundle.CliPath, null, bundle.
Root
, null)));
36
Assert.Equal(Path.Combine(bundle.
Root
, "tray", "aspire-tray.exe"), error.FileName);
43
File.WriteAllText(Path.Combine(bundle.
Root
, "tray", "aspire-tray.exe"), "");
47
TrayLaunchCommand.CreateWindowsStartInfo(new(bundle.CliPath, null, bundle.
Root
, null)));
58
TrayLaunchCommand.CreateWindowsStartInfo(new(bundle.CliPath, 1, bundle.
Root
, null)));