1 write to CliPath
Aspire.Tray.Tests (1)
Helpers\TestTrayBundle.cs (1)
17
CliPath
= Path.Combine(_directory.FullName, "aspire cli");
35 references to CliPath
Aspire.Tray.Tests (35)
Helpers\TestTrayBundle.cs (1)
19
File.WriteAllText(
CliPath
, "");
TrayLaunchCommandTests.cs (16)
57
}, bundle.
CliPath
, bundle.Root, platform, leased.ToString(), remoteOptions))
69
var options = TrayOptions.Parse(["--cli", bundle.
CliPath
, "--bundle-root", bundle.Root]);
80
"--cli", bundle.
CliPath
, "--bundle-root", bundle.Root
91
new(bundle.
CliPath
, null, bundle.Root, null)));
101
new(bundle.
CliPath
, null, bundle.Root, null)));
108
Assert.Equal(new(bundle.
CliPath
, null, null, null), TrayOptions.Parse(["--cli", bundle.
CliPath
]));
118
Assert.Throws<ArgumentException>(() => TrayOptions.Parse(["--cli", bundle.
CliPath
, option, value]));
126
"--cli", bundle.
CliPath
, "--bundle-root", bundle.Root, "--smoke-seconds", "20"]));
136
? ["--cli", bundle.
CliPath
, "--smoke-interactive", "--smoke-seconds", "120"]
137
: ["--cli", bundle.
CliPath
, "--smoke-seconds", "120", "--smoke-interactive"]);
149
Assert.False(TrayOptions.Parse(["--cli", bundle.
CliPath
]).InteractiveSmoke);
150
Assert.False(TrayOptions.Parse(["--cli", bundle.
CliPath
, "--smoke-seconds", "1"]).InteractiveSmoke);
158
Assert.Throws<ArgumentException>(() => TrayOptions.Parse(["--cli", bundle.
CliPath
, "--smoke-interactive"])).Message);
160
"--cli", bundle.
CliPath
, "--smoke-seconds", "120", "--smoke-interactive", "--smoke-interactive"]));
162
"--cli", bundle.
CliPath
, "--bundle-root", bundle.Root, "--smoke-seconds", "120", "--smoke-interactive"]));
TrayStartupOptionsTests.cs (10)
20
var options = TrayOptions.Parse(["--cli", bundle.
CliPath
, "--bundle-root", bundle.Root, "--startup-cli", startup]);
21
Assert.Equal(bundle.
CliPath
, options.CliPath);
26
var expected = new[] { "--cli", bundle.
CliPath
, "--bundle-root", bundle.Root, "--startup-cli", startup };
34
Assert.Null(TrayOptions.Parse(["--cli", bundle.
CliPath
]).StartupCliPath);
35
Assert.Throws<ArgumentException>(() => TrayOptions.Parse(["--cli", bundle.
CliPath
, "--startup-cli", "relative"]));
37
"--cli", bundle.
CliPath
, "--startup-cli", bundle.
CliPath
, "--startup-cli", bundle.
CliPath
]));
39
"--cli", bundle.
CliPath
, "--startup-cli", bundle.
CliPath
, "--smoke-seconds", "1"]));
WindowsTrayLaunchCommandTests.cs (8)
18
var start = TrayLaunchCommand.CreateWindowsStartInfo(new(bundle.
CliPath
, null, bundle.Root, null));
27
Assert.Equal(new[] { "--cli", bundle.
CliPath
, "--bundle-root", bundle.Root }, start.ArgumentList);
35
TrayLaunchCommand.CreateWindowsStartInfo(new(bundle.
CliPath
, null, bundle.Root, null)));
44
File.Delete(bundle.
CliPath
);
47
TrayLaunchCommand.CreateWindowsStartInfo(new(bundle.
CliPath
, null, bundle.Root, null)));
48
Assert.Equal(bundle.
CliPath
, error.FileName);
56
TrayLaunchCommand.CreateWindowsStartInfo(new(bundle.
CliPath
, null, null, null)));
58
TrayLaunchCommand.CreateWindowsStartInfo(new(bundle.
CliPath
, 1, bundle.Root, null)));