Esempio n. 1
0
 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);
 }
Esempio n. 2
0
 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);
 }
Esempio n. 3
0
 public void ShowingHelp()
 {
     standaloneOptions = CSharp.Standalone.Options.Create(new string[] { "--help" });
     Assert.False(standaloneOptions.Errors);
     Assert.True(standaloneOptions.Help);
 }
Esempio n. 4
0
 public void InvalidOptions()
 {
     standaloneOptions = CSharp.Standalone.Options.Create(new string[] { "--references:foo", "--silent", "--no-such-option" });
     Assert.True(standaloneOptions.Errors);
 }