15 references to Parse
Aspire.Tray.Tests (15)
TrayLaunchCommandTests.cs (10)
14var options = TrayOptions.Parse(["--cli", bundle.CliPath, "--bundle-root", bundle.Root]); 53Assert.Equal(new(bundle.CliPath, null, null, null), TrayOptions.Parse(["--cli", bundle.CliPath])); 63Assert.Throws<ArgumentException>(() => TrayOptions.Parse(["--cli", bundle.CliPath, option, value])); 70Assert.Throws<ArgumentException>(() => TrayOptions.Parse([ 80var options = TrayOptions.Parse(interactiveFirst 94Assert.False(TrayOptions.Parse(["--cli", bundle.CliPath]).InteractiveSmoke); 95Assert.False(TrayOptions.Parse(["--cli", bundle.CliPath, "--smoke-seconds", "1"]).InteractiveSmoke); 103Assert.Throws<ArgumentException>(() => TrayOptions.Parse(["--cli", bundle.CliPath, "--smoke-interactive"])).Message); 104Assert.Throws<ArgumentException>(() => TrayOptions.Parse([ 106Assert.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([