16 references to Parse
Aspire.Tray.Tests (16)
TrayLaunchCommandTests.cs (11)
38var options = TrayOptions.Parse(["--cli", cliPath, "--bundle-root", root]); 69var options = TrayOptions.Parse(["--cli", bundle.CliPath, "--bundle-root", bundle.Root]); 108Assert.Equal(new(bundle.CliPath, null, null, null), TrayOptions.Parse(["--cli", bundle.CliPath])); 118Assert.Throws<ArgumentException>(() => TrayOptions.Parse(["--cli", bundle.CliPath, option, value])); 125Assert.Throws<ArgumentException>(() => TrayOptions.Parse([ 135var options = TrayOptions.Parse(interactiveFirst 149Assert.False(TrayOptions.Parse(["--cli", bundle.CliPath]).InteractiveSmoke); 150Assert.False(TrayOptions.Parse(["--cli", bundle.CliPath, "--smoke-seconds", "1"]).InteractiveSmoke); 158Assert.Throws<ArgumentException>(() => TrayOptions.Parse(["--cli", bundle.CliPath, "--smoke-interactive"])).Message); 159Assert.Throws<ArgumentException>(() => TrayOptions.Parse([ 161Assert.Throws<ArgumentException>(() => TrayOptions.Parse([
TrayStartupOptionsTests.cs (5)
20var options = TrayOptions.Parse(["--cli", bundle.CliPath, "--bundle-root", bundle.Root, "--startup-cli", startup]); 34Assert.Null(TrayOptions.Parse(["--cli", bundle.CliPath]).StartupCliPath); 35Assert.Throws<ArgumentException>(() => TrayOptions.Parse(["--cli", bundle.CliPath, "--startup-cli", "relative"])); 36Assert.Throws<ArgumentException>(() => TrayOptions.Parse([ 38Assert.Throws<ArgumentException>(() => TrayOptions.Parse([