public void StandaloneDefaults() { standaloneOptions = CSharp.Standalone.Options.Create(new string[] { }); Assert.Equal(0, standaloneOptions.DllDirs.Count); Assert.True(standaloneOptions.UseNuGet); Assert.True(standaloneOptions.UseMscorlib); Assert.False(standaloneOptions.SkipExtraction); Assert.Null(standaloneOptions.SolutionFile); Assert.True(standaloneOptions.ScanNetFrameworkDlls); Assert.False(standaloneOptions.Errors); }
public void StandaloneOptions() { standaloneOptions = CSharp.Standalone.Options.Create(new string[] { "--references:foo", "--silent", "--skip-nuget", "--skip-dotnet", "--exclude", "bar", "--nostdlib" }); Assert.Equal("foo", standaloneOptions.DllDirs[0]); Assert.Equal("bar", standaloneOptions.Excludes[0]); Assert.Equal(Verbosity.Off, standaloneOptions.Verbosity); Assert.False(standaloneOptions.UseNuGet); Assert.False(standaloneOptions.UseMscorlib); Assert.False(standaloneOptions.ScanNetFrameworkDlls); Assert.False(standaloneOptions.Errors); Assert.False(standaloneOptions.Help); }
public void ShowingHelp() { standaloneOptions = CSharp.Standalone.Options.Create(new string[] { "--help" }); Assert.False(standaloneOptions.Errors); Assert.True(standaloneOptions.Help); }
public void InvalidOptions() { standaloneOptions = CSharp.Standalone.Options.Create(new string[] { "--references:foo", "--silent", "--no-such-option" }); Assert.True(standaloneOptions.Errors); }