public void AdditionalFiles_CommandLine() { Vbc vbc = new Vbc(); vbc.AdditionalFiles = new TaskItem[] { new TaskItem("web.config") }; CommandLine.ValidateHasParameter(vbc, "/additionalfile:web.config"); }
public void Win32Icon() { AL t = new AL(); Assert.Null(t.Win32Icon); // "Default value" t.Win32Icon = "foo.ico"; Assert.Equal("foo.ico", t.Win32Icon); // "New value" // Check the parameters. CommandLine.ValidateHasParameter(t, @"/win32icon:foo.ico"); }
public void Configuration() { AL t = new AL(); Assert.Null(t.Configuration); // "Default value" t.Configuration = "debug"; Assert.Equal("debug", t.Configuration); // "New value" // Check the parameters. CommandLine.ValidateHasParameter(t, @"/configuration:debug"); }
public void TargetType() { AL t = new AL(); Assert.Null(t.TargetType); // "Default value" t.TargetType = "winexe"; Assert.Equal("winexe", t.TargetType); // "New value" // Check the parameters. CommandLine.ValidateHasParameter(t, @"/target:winexe"); }
public void Trademark() { AL t = new AL(); Assert.Null(t.Trademark); // "Default value" t.Trademark = "MyTrademark"; Assert.Equal("MyTrademark", t.Trademark); // "New value" // Check the parameters. CommandLine.ValidateHasParameter(t, @"/trademark:MyTrademark"); }
public void Platform() { AL t = new AL(); Assert.Null(t.Platform); // "Default value" t.Platform = "x86"; Assert.Equal("x86", t.Platform); // "New value" // Check the parameters. CommandLine.ValidateHasParameter(t, @"/platform:x86"); }
public void ProductName() { AL t = new AL(); Assert.Null(t.ProductName); // "Default value" t.ProductName = "VisualStudio"; Assert.Equal("VisualStudio", t.ProductName); // "New value" // Check the parameters. CommandLine.ValidateHasParameter(t, @"/product:VisualStudio"); }
public void DelaySign() { AL t = new AL(); Assert.False(t.DelaySign); // "Default value" t.DelaySign = true; Assert.True(t.DelaySign); // "New value" // Check the parameters. CommandLine.ValidateHasParameter(t, "/delaysign+"); }
public void Description() { AL t = new AL(); Assert.Null(t.Description); // "Default value" t.Description = "whatever"; Assert.Equal("whatever", t.Description); // "New value" // Check the parameters. CommandLine.ValidateHasParameter(t, @"/description:whatever"); }
public void DocumentationFile() { WinMDExp t = new WinMDExp(); t.WinMDModule = "Foo.dll"; t.OutputDocumentationFile = "output.xml"; t.InputDocumentationFile = "input.xml"; CommandLine.ValidateHasParameter(t, "/d:output.xml", useResponseFile: true); CommandLine.ValidateHasParameter(t, "/md:input.xml", useResponseFile: true); }
public void Culture() { AL t = new AL(); Assert.Null(t.Culture); // "Default value" t.Culture = "aussie"; Assert.Equal("aussie", t.Culture); // "New value" // Check the parameters. CommandLine.ValidateHasParameter(t, @"/culture:aussie"); }
public void Version() { AL t = new AL(); Assert.IsNull(t.Version, "Default value"); t.Version = "WowHowManyKindsOfVersionsAreThere"; Assert.AreEqual("WowHowManyKindsOfVersionsAreThere", t.Version, "New value"); // Check the parameters. CommandLine.ValidateHasParameter(t, @"/version:WowHowManyKindsOfVersionsAreThere"); }
public void TemplateFile() { AL t = new AL(); Assert.IsNull(t.TemplateFile, "Default value"); t.TemplateFile = "mymainassembly.dll"; Assert.AreEqual("mymainassembly.dll", t.TemplateFile, "New value"); // Check the parameters. CommandLine.ValidateHasParameter(t, @"/template:mymainassembly.dll"); }
public void References() { Vbc t = new Vbc(); TaskItem reference = new TaskItem("System.Xml.dll"); reference.SetMetadata("Alias", "Foo"); t.References = new TaskItem[] { reference }; CommandLine.ValidateHasParameter(t, "/reference:System.Xml.dll"); }
public void MainEntryPoint() { AL t = new AL(); Assert.Null(t.MainEntryPoint); // "Default value" t.MainEntryPoint = "Class1.Main"; Assert.Equal("Class1.Main", t.MainEntryPoint); // "New value" // Check the parameters. CommandLine.ValidateHasParameter(t, @"/main:Class1.Main"); }
public void EvidenceFile() { AL t = new AL(); Assert.Null(t.EvidenceFile); // "Default value" t.EvidenceFile = "MyEvidenceFile"; Assert.Equal("MyEvidenceFile", t.EvidenceFile); // "New value" // Check the parameters. CommandLine.ValidateHasParameter(t, @"/evidence:MyEvidenceFile"); }
public void OutputAssembly() { AL t = new AL(); Assert.Null(t.OutputAssembly); // "Default value" t.OutputAssembly = new TaskItem("foo.dll"); Assert.Equal("foo.dll", t.OutputAssembly.ItemSpec); // "New value" // Check the parameters. CommandLine.ValidateHasParameter(t, @"/out:foo.dll"); }
public void FileVersion() { AL t = new AL(); Assert.Null(t.FileVersion); // "Default value" t.FileVersion = "1.2.3.4"; Assert.Equal("1.2.3.4", t.FileVersion); // "New value" // Check the parameters. CommandLine.ValidateHasParameter(t, @"/fileversion:1.2.3.4"); }
public void BaseAddress() { AL t = new AL(); Assert.Null(t.BaseAddress); // "Default value" t.BaseAddress = "12345678"; Assert.Equal("12345678", t.BaseAddress); // "New value" // Check the parameters. CommandLine.ValidateHasParameter(t, @"/baseaddress:12345678"); }
public void Flags() { AL t = new AL(); Assert.Null(t.Flags); // "Default value" t.Flags = "0x8421"; Assert.Equal("0x8421", t.Flags); // "New value" // Check the parameters. CommandLine.ValidateHasParameter(t, @"/flags:0x8421"); }
public void ProductVersion() { AL t = new AL(); Assert.Null(t.ProductVersion); // "Default value" t.ProductVersion = "8.0"; Assert.Equal("8.0", t.ProductVersion); // "New value" // Check the parameters. CommandLine.ValidateHasParameter(t, @"/productversion:8.0"); }
public void GenerateFullPaths() { AL t = new AL(); Assert.False(t.GenerateFullPaths); // "Default value" t.GenerateFullPaths = true; Assert.True(t.GenerateFullPaths); // "New value" // Check the parameters. CommandLine.ValidateHasParameter(t, "/fullpaths"); }
public void Title() { AL t = new AL(); Assert.Null(t.Title); // "Default value" t.Title = "WarAndPeace"; Assert.Equal("WarAndPeace", t.Title); // "New value" // Check the parameters. CommandLine.ValidateHasParameter(t, @"/title:WarAndPeace"); }
public void AlgorithmId() { AL t = new AL(); Assert.Null(t.AlgorithmId); // "Default value" t.AlgorithmId = "whatisthis"; Assert.Equal("whatisthis", t.AlgorithmId); // "New value" // Check the parameters. CommandLine.ValidateHasParameter(t, @"/algid:whatisthis"); }
public void CompanyName() { AL t = new AL(); Assert.Null(t.CompanyName); // "Default value" t.CompanyName = "Google"; Assert.Equal("Google", t.CompanyName); // "New value" // Check the parameters. CommandLine.ValidateHasParameter(t, @"/company:Google"); }
public void KeyFile() { AL t = new AL(); Assert.Null(t.KeyFile); // "Default value" t.KeyFile = "mykey.snk"; Assert.Equal("mykey.snk", t.KeyFile); // "New value" // Check the parameters. CommandLine.ValidateHasParameter(t, @"/keyfile:mykey.snk"); }
public void Win32Resource() { AL t = new AL(); Assert.Null(t.Win32Resource); // "Default value" t.Win32Resource = "foo.res"; Assert.Equal("foo.res", t.Win32Resource); // "New value" // Check the parameters. CommandLine.ValidateHasParameter(t, @"/win32res:foo.res"); }
public void KeyContainer() { AL t = new AL(); Assert.Null(t.KeyContainer); // "Default value" t.KeyContainer = "MyKeyContainer"; Assert.Equal("MyKeyContainer", t.KeyContainer); // "New value" // Check the parameters. CommandLine.ValidateHasParameter(t, @"/keyname:MyKeyContainer"); }
public void Copyright() { AL t = new AL(); Assert.Null(t.Copyright); // "Default value" t.Copyright = "(C) 2005"; Assert.Equal("(C) 2005", t.Copyright); // "New value" // Check the parameters. CommandLine.ValidateHasParameter(t, @"/copyright:(C) 2005"); }
public void Analyzer_CommandLine() { Vbc vbc = new Vbc(); vbc.Analyzers = new TaskItem[] { new TaskItem("Foo.dll") }; CommandLine.ValidateHasParameter(vbc, "/analyzer:Foo.dll"); }