Ejemplo n.º 1
0
        public void AdditionalFiles_CommandLine()
        {
            Vbc vbc = new Vbc();

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

            CommandLine.ValidateHasParameter(vbc, "/additionalfile:web.config");
        }
Ejemplo n.º 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");
        }
Ejemplo n.º 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");
        }
Ejemplo n.º 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");
        }
Ejemplo n.º 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");
        }
Ejemplo n.º 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");
        }
Ejemplo n.º 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");
        }
Ejemplo n.º 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+");
        }
Ejemplo n.º 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");
        }
Ejemplo n.º 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);
        }
Ejemplo n.º 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");
        }
Ejemplo n.º 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");
        }
Ejemplo n.º 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");
        }
Ejemplo n.º 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");
        }
Ejemplo n.º 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");
        }
Ejemplo n.º 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");
        }
Ejemplo n.º 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");
        }
Ejemplo n.º 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");
        }
Ejemplo n.º 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");
        }
Ejemplo n.º 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");
        }
Ejemplo n.º 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");
        }
Ejemplo n.º 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");
        }
Ejemplo n.º 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");
        }
Ejemplo n.º 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");
        }
Ejemplo n.º 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");
        }
Ejemplo n.º 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");
        }
Ejemplo n.º 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");
        }
Ejemplo n.º 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");
        }
Ejemplo n.º 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");
        }
Ejemplo n.º 30
0
        public void Analyzer_CommandLine()
        {
            Vbc vbc = new Vbc();

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

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