Example #1
0
        public void AdditionalFiles_CommandLine()
        {
            Vbc vbc = new Vbc();

            vbc.AdditionalFiles = new TaskItem[]
            {
                new TaskItem("web.config")
            };

            CommandLine.ValidateHasParameter(vbc, "/additionalfile:web.config");
        }
Example #2
0
        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");
        }
Example #3
0
        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");
        }
Example #4
0
        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");
        }
Example #5
0
        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");
        }
Example #6
0
        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");
        }
Example #7
0
        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");
        }
Example #8
0
        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+");
        }
Example #9
0
        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");
        }
Example #10
0
        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);
        }
Example #11
0
        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");
        }
Example #12
0
        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");
        }
Example #13
0
        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");
        }
Example #14
0
        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");
        }
Example #15
0
        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");
        }
Example #16
0
        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");
        }
Example #17
0
        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");
        }
Example #18
0
        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");
        }
Example #19
0
        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");
        }
Example #20
0
        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");
        }
Example #21
0
        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");
        }
Example #22
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");
        }
Example #23
0
        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");
        }
Example #24
0
        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");
        }
Example #25
0
        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");
        }
Example #26
0
        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");
        }
Example #27
0
        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");
        }
Example #28
0
        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");
        }
Example #29
0
        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");
        }
Example #30
0
        public void Analyzer_CommandLine()
        {
            Vbc vbc = new Vbc();

            vbc.Analyzers = new TaskItem[]
            {
                new TaskItem("Foo.dll")
            };

            CommandLine.ValidateHasParameter(vbc, "/analyzer:Foo.dll");
        }