Beispiel #1
0
        public void TestAlgorithmId()
        {
            ALExtended ale = new ALExtended();
            CommandLineBuilderExtension clbe = new CommandLineBuilderExtension();

            ale.AlgorithmId = "a";
            ale.ARFC(clbe);

            Assert.AreEqual("/algid:a", clbe.ToString(), "A1");
        }
        public void TestWin32Resource()
        {
            ALExtended ale = new ALExtended();
            CommandLineBuilderExtension clbe = new CommandLineBuilderExtension();

            ale.Win32Resource = "a";
            ale.ARFC(clbe);

            Assert.AreEqual("/win32res:a", clbe.ToString(), "A1");
        }
        public void TestDelaySign2()
        {
            ALExtended ale = new ALExtended();
            CommandLineBuilderExtension clbe = new CommandLineBuilderExtension();

            ale.DelaySign = false;
            ale.ARFC(clbe);

            Assert.AreEqual("/delaysign-", clbe.ToString(), "A1");
        }
        public void TestTrademark()
        {
            ALExtended ale = new ALExtended();
            CommandLineBuilderExtension clbe = new CommandLineBuilderExtension();

            ale.Trademark = "a";
            ale.ARFC(clbe);

            Assert.AreEqual("/trademark:a", clbe.ToString(), "A1");
        }
        public void TestVersion()
        {
            ALExtended ale = new ALExtended();
            CommandLineBuilderExtension clbe = new CommandLineBuilderExtension();

            ale.Version = "a";
            ale.ARFC(clbe);

            Assert.AreEqual("/version:a", clbe.ToString(), "A1");
        }
        public void TestTargetType()
        {
            ALExtended ale = new ALExtended();
            CommandLineBuilderExtension clbe = new CommandLineBuilderExtension();

            ale.TargetType = "a";
            ale.ARFC(clbe);

            Assert.AreEqual("/target:a", clbe.ToString(), "A1");
        }
        public void TestTemplateFile()
        {
            ALExtended ale = new ALExtended();
            CommandLineBuilderExtension clbe = new CommandLineBuilderExtension();

            ale.TemplateFile = "a";
            ale.ARFC(clbe);

            Assert.AreEqual("/template:a", clbe.ToString(), "A1");
        }
        public void TestPlatform()
        {
            ALExtended ale = new ALExtended();
            CommandLineBuilderExtension clbe = new CommandLineBuilderExtension();

            ale.Platform = "a";
            ale.ARFC(clbe);

            Assert.AreEqual("/platform:a", clbe.ToString(), "A1");
        }
        public void TestProductName()
        {
            ALExtended ale = new ALExtended();
            CommandLineBuilderExtension clbe = new CommandLineBuilderExtension();

            ale.ProductName = "a";
            ale.ARFC(clbe);

            Assert.AreEqual("/product:a", clbe.ToString(), "A1");
        }
        public void TestMainEntryPoint()
        {
            ALExtended ale = new ALExtended();
            CommandLineBuilderExtension clbe = new CommandLineBuilderExtension();

            ale.MainEntryPoint = "a";
            ale.ARFC(clbe);

            Assert.AreEqual("/main:a", clbe.ToString(), "A1");
        }
        public void TestOutputAssembly()
        {
            ALExtended ale = new ALExtended();
            CommandLineBuilderExtension clbe = new CommandLineBuilderExtension();

            ale.OutputAssembly = new TaskItem("a");
            ale.ARFC(clbe);

            Assert.AreEqual("/out:a", clbe.ToString(), "A1");
        }
        public void TestKeyContainer()
        {
            ALExtended ale = new ALExtended();
            CommandLineBuilderExtension clbe = new CommandLineBuilderExtension();

            ale.KeyContainer = "a";
            ale.ARFC(clbe);

            Assert.AreEqual("/keyname:a", clbe.ToString(), "A1");
        }
        public void TestGenerateFullPaths2()
        {
            ALExtended ale = new ALExtended();
            CommandLineBuilderExtension clbe = new CommandLineBuilderExtension();

            ale.GenerateFullPaths = false;
            ale.ARFC(clbe);

            Assert.AreEqual(String.Empty, clbe.ToString(), "A1");
        }
        public void TestGenerateFullPaths1()
        {
            ALExtended ale = new ALExtended();
            CommandLineBuilderExtension clbe = new CommandLineBuilderExtension();

            ale.GenerateFullPaths = true;
            ale.ARFC(clbe);

            Assert.AreEqual("/fullpaths", clbe.ToString(), "A1");
        }
Beispiel #15
0
        public void TestBaseAddress()
        {
            ALExtended ale = new ALExtended();
            CommandLineBuilderExtension clbe = new CommandLineBuilderExtension();

            ale.BaseAddress = "a";
            ale.ARFC(clbe);

            Assert.AreEqual("/baseaddress:a", clbe.ToString(), "A1");
        }
        public void TestCulture()
        {
            ALExtended ale = new ALExtended();
            CommandLineBuilderExtension clbe = new CommandLineBuilderExtension();

            ale.Culture = "a";
            ale.ARFC(clbe);

            Assert.AreEqual("/culture:a", clbe.ToString(), "A1");
        }
Beispiel #17
0
        public void TestSourceModules()
        {
            ALExtended ale = new ALExtended();
            CommandLineBuilderExtension clbe = new CommandLineBuilderExtension();

            ale.SourceModules = new ITaskItem [2] {
                new TaskItem("a"), new TaskItem("b")
            };
            ale.ARFC(clbe);

            Assert.AreEqual("a b", clbe.ToString(), "A1");
        }
Beispiel #18
0
        public void TestResponseFiles()
        {
            ALExtended ale = new ALExtended();
            CommandLineBuilderExtension clbe = new CommandLineBuilderExtension();

            ale.ResponseFiles = new string [2] {
                "a", "b"
            };
            ale.ARFC(clbe);

            Assert.AreEqual("@a @b", clbe.ToString(), "A1");
        }
Beispiel #19
0
        public void TestEmbedResourcesWithLogicalName()
        {
            ALExtended ale = new ALExtended();
            CommandLineBuilderExtension clbe = new CommandLineBuilderExtension();
            var dict = new Dictionary <string, string> ();

            dict ["LogicalName"] = "value";

            ale.EmbedResources = new ITaskItem [2] {
                new TaskItem("a", dict), new TaskItem("b", dict)
            };
            ale.ARFC(clbe);

            Assert.AreEqual("/embed:a,value /embed:b,value", clbe.ToString(), "A1");
        }
Beispiel #20
0
		public void TestPlatform ()
		{
			ALExtended ale = new ALExtended ();
			CommandLineBuilderExtension clbe = new CommandLineBuilderExtension ();

			ale.Platform = "a";
			ale.ARFC (clbe);
			
			Assert.AreEqual ("/platform:a", clbe.ToString (), "A1");
		}
Beispiel #21
0
		public void TestOutputAssembly ()
		{
			ALExtended ale = new ALExtended ();
			CommandLineBuilderExtension clbe = new CommandLineBuilderExtension ();

			ale.OutputAssembly = new TaskItem ("a");
			ale.ARFC (clbe);
			
			Assert.AreEqual ("/out:a", clbe.ToString (), "A1");
		}
Beispiel #22
0
		public void TestMainEntryPoint ()
		{
			ALExtended ale = new ALExtended ();
			CommandLineBuilderExtension clbe = new CommandLineBuilderExtension ();

			ale.MainEntryPoint = "a";
			ale.ARFC (clbe);
			
			Assert.AreEqual ("/main:a", clbe.ToString (), "A1");
		}
Beispiel #23
0
		public void TestKeyContainer ()
		{
			ALExtended ale = new ALExtended ();
			CommandLineBuilderExtension clbe = new CommandLineBuilderExtension ();

			ale.KeyContainer = "a";
			ale.ARFC (clbe);
			
			Assert.AreEqual ("/keyname:a", clbe.ToString (), "A1");
		}
Beispiel #24
0
		public void TestTemplateFile ()
		{
			ALExtended ale = new ALExtended ();
			CommandLineBuilderExtension clbe = new CommandLineBuilderExtension ();

			ale.TemplateFile = "a";
			ale.ARFC (clbe);
			
			Assert.AreEqual ("/template:a", clbe.ToString (), "A1");
		}
Beispiel #25
0
		public void TestSourceModules ()
		{
			ALExtended ale = new ALExtended ();
			CommandLineBuilderExtension clbe = new CommandLineBuilderExtension ();

			ale.SourceModules = new ITaskItem [2] { new TaskItem ("a"), new TaskItem ("b") };
			ale.ARFC (clbe);
			
			Assert.AreEqual ("a b", clbe.ToString (), "A1");
		}
Beispiel #26
0
		public void TestCulture ()
		{
			ALExtended ale = new ALExtended ();
			CommandLineBuilderExtension clbe = new CommandLineBuilderExtension ();

			ale.Culture = "a";
			ale.ARFC (clbe);
			
			Assert.AreEqual ("/culture:a", clbe.ToString (), "A1");
		}
Beispiel #27
0
		public void TestBaseAddress ()
		{
			ALExtended ale = new ALExtended ();
			CommandLineBuilderExtension clbe = new CommandLineBuilderExtension ();

			ale.BaseAddress = "a";
			ale.ARFC (clbe);
			
			Assert.AreEqual ("/baseaddress:a", clbe.ToString (), "A1");
		}
Beispiel #28
0
		public void TestAlgorithmId ()
		{
			ALExtended ale = new ALExtended ();
			CommandLineBuilderExtension clbe = new CommandLineBuilderExtension ();

			ale.AlgorithmId = "a";
			ale.ARFC (clbe);
			
			Assert.AreEqual ("/algid:a", clbe.ToString (), "A1");
		}
Beispiel #29
0
		public void TestAssignment2 ()
		{
			ALExtended ale = new ALExtended ();
			Assert.AreEqual ("AL.exe", ale.TN, "A31");
		}
Beispiel #30
0
        public void TestAssignment2()
        {
            ALExtended ale = new ALExtended();

            Assert.AreEqual("AL.exe", ale.TN, "A31");
        }
Beispiel #31
0
		public void TestVersion ()
		{
			ALExtended ale = new ALExtended ();
			CommandLineBuilderExtension clbe = new CommandLineBuilderExtension ();

			ale.Version = "a";
			ale.ARFC (clbe);
			
			Assert.AreEqual ("/version:a", clbe.ToString (), "A1");
		}
Beispiel #32
0
		public void TestProductName ()
		{
			ALExtended ale = new ALExtended ();
			CommandLineBuilderExtension clbe = new CommandLineBuilderExtension ();

			ale.ProductName = "a";
			ale.ARFC (clbe);
			
			Assert.AreEqual ("/product:a", clbe.ToString (), "A1");
		}
Beispiel #33
0
		public void TestResponseFiles ()
		{
			ALExtended ale = new ALExtended ();
			CommandLineBuilderExtension clbe = new CommandLineBuilderExtension ();

			ale.ResponseFiles = new string [2] { "a", "b" };
			ale.ARFC (clbe);
			
			Assert.AreEqual ("@a @b", clbe.ToString (), "A1");
		}
Beispiel #34
0
		public void TestDelaySign2 ()
		{
			ALExtended ale = new ALExtended ();
			CommandLineBuilderExtension clbe = new CommandLineBuilderExtension ();

			ale.DelaySign = false;
			ale.ARFC (clbe);
			
			Assert.AreEqual ("/delaysign-", clbe.ToString (), "A1");
		}
Beispiel #35
0
		public void TestTargetType ()
		{
			ALExtended ale = new ALExtended ();
			CommandLineBuilderExtension clbe = new CommandLineBuilderExtension ();

			ale.TargetType = "a";
			ale.ARFC (clbe);
			
			Assert.AreEqual ("/target:a", clbe.ToString (), "A1");
		}
Beispiel #36
0
		public void TestGenerateFullPaths1 ()
		{
			ALExtended ale = new ALExtended ();
			CommandLineBuilderExtension clbe = new CommandLineBuilderExtension ();

			ale.GenerateFullPaths = true;
			ale.ARFC (clbe);
			
			Assert.AreEqual ("/fullpaths", clbe.ToString (), "A1");
		}
Beispiel #37
0
		public void TestTrademark ()
		{
			ALExtended ale = new ALExtended ();
			CommandLineBuilderExtension clbe = new CommandLineBuilderExtension ();

			ale.Trademark = "a";
			ale.ARFC (clbe);
			
			Assert.AreEqual ("/trademark:a", clbe.ToString (), "A1");
		}
Beispiel #38
0
		public void TestGenerateFullPaths2 ()
		{
			ALExtended ale = new ALExtended ();
			CommandLineBuilderExtension clbe = new CommandLineBuilderExtension ();

			ale.GenerateFullPaths = false;
			ale.ARFC (clbe);
			
			Assert.AreEqual (String.Empty, clbe.ToString (), "A1");
		}
Beispiel #39
0
		public void TestWin32Resource ()
		{
			ALExtended ale = new ALExtended ();
			CommandLineBuilderExtension clbe = new CommandLineBuilderExtension ();

			ale.Win32Resource = "a";
			ale.ARFC (clbe);
			
			Assert.AreEqual ("/win32res:a", clbe.ToString (), "A1");
		}
Beispiel #40
0
		public void TestEmbedResourcesWithLogicalName ()
		{
			ALExtended ale = new ALExtended ();
			CommandLineBuilderExtension clbe = new CommandLineBuilderExtension ();
			var dict = new Dictionary<string, string> ();
			dict ["LogicalName"] = "value";

			ale.EmbedResources = new ITaskItem [2] { new TaskItem ("a", dict), new TaskItem ("b", dict) };
			ale.ARFC (clbe);

			Assert.AreEqual ("/embed:a,value /embed:b,value", clbe.ToString (), "A1");
		}