Esempio n. 1
0
        public void TestFileAlignment2()
        {
            MCExtended mc = new MCExtended();
            CommandLineBuilderExtension c1 = new CommandLineBuilderExtension();
            CommandLineBuilderExtension c2 = new CommandLineBuilderExtension();

            mc.ARFC(c1);
            mc.ACLC(c2);

            Assert.AreEqual(String.Empty, c1.ToString(), "A1");
            Assert.AreEqual(String.Empty, c2.ToString(), "A2");
        }
Esempio n. 2
0
        public void TestTreatWarningsAsErrors2()
        {
            MCExtended mc = new MCExtended();
            CommandLineBuilderExtension c1 = new CommandLineBuilderExtension();
            CommandLineBuilderExtension c2 = new CommandLineBuilderExtension();

            mc.TreatWarningsAsErrors = false;
            mc.ARFC(c1);
            mc.ACLC(c2);

            Assert.AreEqual("/warnaserror-", c1.ToString(), "A1");
            Assert.AreEqual(String.Empty, c2.ToString(), "A2");
        }
Esempio n. 3
0
        public void TestWin32Resource()
        {
            MCExtended mc = new MCExtended();
            CommandLineBuilderExtension c1 = new CommandLineBuilderExtension();
            CommandLineBuilderExtension c2 = new CommandLineBuilderExtension();

            mc.Win32Resource = "A;B";
            mc.ARFC(c1);
            mc.ACLC(c2);

            Assert.AreEqual(String.Empty, c1.ToString(), "A1");
            Assert.AreEqual(String.Empty, c2.ToString(), "A2");
        }
Esempio n. 4
0
        public void TestTargetType()
        {
            MCExtended mc = new MCExtended();
            CommandLineBuilderExtension c1 = new CommandLineBuilderExtension();
            CommandLineBuilderExtension c2 = new CommandLineBuilderExtension();

            mc.TargetType = "A";
            mc.ARFC(c1);
            mc.ACLC(c2);

            Assert.AreEqual("/target:a", c1.ToString(), "A1");
            Assert.AreEqual(String.Empty, c2.ToString(), "A2");
        }
Esempio n. 5
0
        public void TestDefineConstants()
        {
            MCExtended mc = new MCExtended();
            CommandLineBuilderExtension c1 = new CommandLineBuilderExtension();
            CommandLineBuilderExtension c2 = new CommandLineBuilderExtension();

            mc.DefineConstants = "A;B";
            mc.ARFC(c1);
            mc.ACLC(c2);

            Assert.AreEqual(String.Empty, c1.ToString(), "A1");
            Assert.AreEqual(String.Empty, c2.ToString(), "A2");
        }
Esempio n. 6
0
        public void TestCodePage1()
        {
            MCExtended mc = new MCExtended();
            CommandLineBuilderExtension c1 = new CommandLineBuilderExtension();
            CommandLineBuilderExtension c2 = new CommandLineBuilderExtension();

            mc.CodePage = 1111;
            mc.ARFC(c1);
            mc.ACLC(c2);

            Assert.AreEqual("/codepage:1111", c1.ToString(), "A1");
            Assert.AreEqual(String.Empty, c2.ToString(), "A2");
        }
Esempio n. 7
0
        public void TestEmitDebugInformation2()
        {
            MCExtended mc = new MCExtended();
            CommandLineBuilderExtension c1 = new CommandLineBuilderExtension();
            CommandLineBuilderExtension c2 = new CommandLineBuilderExtension();

            mc.EmitDebugInformation = false;
            mc.ARFC(c1);
            mc.ACLC(c2);

            Assert.AreEqual("/debug-", c1.ToString(), "A1");
            Assert.AreEqual(String.Empty, c2.ToString(), "A2");
        }
Esempio n. 8
0
        public void TestDelaySign2()
        {
            MCExtended mc = new MCExtended();
            CommandLineBuilderExtension c1 = new CommandLineBuilderExtension();
            CommandLineBuilderExtension c2 = new CommandLineBuilderExtension();

            mc.DelaySign = false;
            mc.ARFC(c1);
            mc.ACLC(c2);

            Assert.AreEqual("/delaysign-", c1.ToString(), "A1");
            Assert.AreEqual(String.Empty, c2.ToString(), "A2");
        }
Esempio n. 9
0
        public void TestMainEntryPoint()
        {
            MCExtended mc = new MCExtended();
            CommandLineBuilderExtension c1 = new CommandLineBuilderExtension();
            CommandLineBuilderExtension c2 = new CommandLineBuilderExtension();

            mc.MainEntryPoint = "A";
            mc.ARFC(c1);
            mc.ACLC(c2);

            Assert.AreEqual(String.Empty, c1.ToString(), "A1");
            Assert.AreEqual(String.Empty, c2.ToString(), "A2");
        }
Esempio n. 10
0
        public void TestKeyFile()
        {
            MCExtended mc = new MCExtended();
            CommandLineBuilderExtension c1 = new CommandLineBuilderExtension();
            CommandLineBuilderExtension c2 = new CommandLineBuilderExtension();

            mc.KeyFile = "A";
            mc.ARFC(c1);
            mc.ACLC(c2);

            Assert.AreEqual("/keyfile:A", c1.ToString(), "A1");
            Assert.AreEqual(String.Empty, c2.ToString(), "A2");
        }
Esempio n. 11
0
        public void TestNoLogo1()
        {
            MCExtended mc = new MCExtended();
            CommandLineBuilderExtension c1 = new CommandLineBuilderExtension();
            CommandLineBuilderExtension c2 = new CommandLineBuilderExtension();

            mc.NoLogo = true;
            mc.ARFC(c1);
            mc.ACLC(c2);

            Assert.AreEqual("/nologo", c1.ToString(), "A1");
            Assert.AreEqual(String.Empty, c2.ToString(), "A2");
        }
Esempio n. 12
0
        public void TestOptimize2()
        {
            MCExtended mc = new MCExtended();
            CommandLineBuilderExtension c1 = new CommandLineBuilderExtension();
            CommandLineBuilderExtension c2 = new CommandLineBuilderExtension();

            mc.Optimize = false;
            mc.ARFC(c1);
            mc.ACLC(c2);

            Assert.AreEqual("/optimize-", c1.ToString(), "A1");
            Assert.AreEqual(String.Empty, c2.ToString(), "A2");
        }
Esempio n. 13
0
        public void TestOutputAssembly()
        {
            MCExtended mc = new MCExtended();
            CommandLineBuilderExtension c1 = new CommandLineBuilderExtension();
            CommandLineBuilderExtension c2 = new CommandLineBuilderExtension();

            mc.OutputAssembly = new TaskItem("A");
            mc.ARFC(c1);
            mc.ACLC(c2);

            Assert.AreEqual("/out:A", c1.ToString(), "A1");
            Assert.AreEqual(String.Empty, c2.ToString(), "A2");
        }
Esempio n. 14
0
        public void TestUtf8Output1()
        {
            MCExtended mc = new MCExtended();
            CommandLineBuilderExtension c1 = new CommandLineBuilderExtension();
            CommandLineBuilderExtension c2 = new CommandLineBuilderExtension();

            mc.Utf8Output = true;
            mc.ARFC(c1);
            mc.ACLC(c2);

            Assert.AreEqual("/utf8output", c1.ToString(), "A1");
            Assert.AreEqual(String.Empty, c2.ToString(), "A2");
        }
Esempio n. 15
0
        public void TestSources()
        {
            MCExtended mc = new MCExtended();
            CommandLineBuilderExtension c1 = new CommandLineBuilderExtension();
            CommandLineBuilderExtension c2 = new CommandLineBuilderExtension();

            mc.Sources = new ITaskItem [2] {
                new TaskItem("A"), new TaskItem("B")
            };
            mc.ARFC(c1);
            mc.ACLC(c2);

            Assert.AreEqual("/out:A.exe A B", c1.ToString(), "A1");
            Assert.AreEqual(String.Empty, c2.ToString(), "A2");
        }
Esempio n. 16
0
        public void TestAddModules()
        {
            MCExtended mc = new MCExtended();
            CommandLineBuilderExtension c1 = new CommandLineBuilderExtension();
            CommandLineBuilderExtension c2 = new CommandLineBuilderExtension();

            mc.AddModules = new string [2] {
                "A", "B"
            };
            mc.ARFC(c1);
            mc.ACLC(c2);

            Assert.AreEqual("/addmodule:A,B", c1.ToString(), "A1");
            Assert.AreEqual(String.Empty, c2.ToString(), "A2");
        }
Esempio n. 17
0
		public void TestFileAlignment1 ()
		{
			MCExtended mc = new MCExtended ();
			CommandLineBuilderExtension c1 = new CommandLineBuilderExtension ();
			CommandLineBuilderExtension c2 = new CommandLineBuilderExtension ();

			mc.FileAlignment = 100;
			mc.ARFC (c1);
			mc.ACLC (c2);
			
			Assert.AreEqual ("/filealign:100", c1.ToString (), "A1");
			Assert.AreEqual (String.Empty, c2.ToString (), "A2");
		}
Esempio n. 18
0
		public void TestCodePage1 ()
		{
			MCExtended mc = new MCExtended ();
			CommandLineBuilderExtension c1 = new CommandLineBuilderExtension ();
			CommandLineBuilderExtension c2 = new CommandLineBuilderExtension ();

			mc.CodePage = 1111;
			mc.ARFC (c1);
			mc.ACLC (c2);
			
			Assert.AreEqual ("/codepage:1111", c1.ToString (), "A1");
			Assert.AreEqual (String.Empty, c2.ToString (), "A2");
		}
Esempio n. 19
0
		public void TestKeyFile ()
		{
			MCExtended mc = new MCExtended ();
			CommandLineBuilderExtension c1 = new CommandLineBuilderExtension ();
			CommandLineBuilderExtension c2 = new CommandLineBuilderExtension ();

			mc.KeyFile = "A";
			mc.ARFC (c1);
			mc.ACLC (c2);
			
			Assert.AreEqual ("/keyfile:A /publicsign", c1.ToString (), "A1");
			Assert.AreEqual (String.Empty, c2.ToString (), "A2");
		}
Esempio n. 20
0
		public void TestKeyContainer ()
		{
			MCExtended mc = new MCExtended ();
			CommandLineBuilderExtension c1 = new CommandLineBuilderExtension ();
			CommandLineBuilderExtension c2 = new CommandLineBuilderExtension ();

			mc.KeyContainer = "A";
			mc.ARFC (c1);
			mc.ACLC (c2);
			
			Assert.AreEqual ("/keycontainer:A", c1.ToString (), "A1");
			Assert.AreEqual (String.Empty, c2.ToString (), "A2");
		}
Esempio n. 21
0
		public void TestNoLogo1 ()
		{
			MCExtended mc = new MCExtended ();
			CommandLineBuilderExtension c1 = new CommandLineBuilderExtension ();
			CommandLineBuilderExtension c2 = new CommandLineBuilderExtension ();

			mc.NoLogo = true;
			mc.ARFC (c1);
			mc.ACLC (c2);
			
			Assert.AreEqual ("/nologo", c1.ToString (), "A1");
			Assert.AreEqual (String.Empty, c2.ToString (), "A2");
		}
Esempio n. 22
0
		public void TestMainEntryPoint ()
		{
			MCExtended mc = new MCExtended ();
			CommandLineBuilderExtension c1 = new CommandLineBuilderExtension ();
			CommandLineBuilderExtension c2 = new CommandLineBuilderExtension ();

			mc.MainEntryPoint = "A";
			mc.ARFC (c1);
			mc.ACLC (c2);
			
			Assert.AreEqual (String.Empty, c1.ToString (), "A1");
			Assert.AreEqual (String.Empty, c2.ToString (), "A2");
		}
Esempio n. 23
0
		public void TestOptimize2 ()
		{
			MCExtended mc = new MCExtended ();
			CommandLineBuilderExtension c1 = new CommandLineBuilderExtension ();
			CommandLineBuilderExtension c2 = new CommandLineBuilderExtension ();

			mc.Optimize = false;
			mc.ARFC (c1);
			mc.ACLC (c2);
			
			Assert.AreEqual ("/optimize-", c1.ToString (), "A1");
			Assert.AreEqual (String.Empty, c2.ToString (), "A2");
		}
Esempio n. 24
0
		public void TestDefineConstants ()
		{
			MCExtended mc = new MCExtended ();
			CommandLineBuilderExtension c1 = new CommandLineBuilderExtension ();
			CommandLineBuilderExtension c2 = new CommandLineBuilderExtension ();

			mc.DefineConstants = "A;B";
			mc.ARFC (c1);
			mc.ACLC (c2);
			
			Assert.AreEqual (String.Empty, c1.ToString (), "A1");
			Assert.AreEqual (String.Empty, c2.ToString (), "A2");
		}
Esempio n. 25
0
		public void TestOutputAssembly ()
		{
			MCExtended mc = new MCExtended ();
			CommandLineBuilderExtension c1 = new CommandLineBuilderExtension ();
			CommandLineBuilderExtension c2 = new CommandLineBuilderExtension ();

			mc.OutputAssembly = new TaskItem ("A");
			mc.ARFC (c1);
			mc.ACLC (c2);
			
			Assert.AreEqual ("/out:A", c1.ToString (), "A1");
			Assert.AreEqual (String.Empty, c2.ToString (), "A2");
		}
Esempio n. 26
0
		public void TestSources ()
		{
			MCExtended mc = new MCExtended ();
			CommandLineBuilderExtension c1 = new CommandLineBuilderExtension ();
			CommandLineBuilderExtension c2 = new CommandLineBuilderExtension ();

			mc.Sources = new ITaskItem [2] { new TaskItem ("A"), new TaskItem ("B") };
			mc.ARFC (c1);
			mc.ACLC (c2);
			
			Assert.AreEqual ("/out:A.exe A B", c1.ToString (), "A1");
			Assert.AreEqual (String.Empty, c2.ToString (), "A2");
		}
Esempio n. 27
0
		public void TestTargetType ()
		{
			MCExtended mc = new MCExtended ();
			CommandLineBuilderExtension c1 = new CommandLineBuilderExtension ();
			CommandLineBuilderExtension c2 = new CommandLineBuilderExtension ();

			mc.TargetType = "A";
			mc.ARFC (c1);
			mc.ACLC (c2);
			
			Assert.AreEqual ("/target:a", c1.ToString (), "A1");
			Assert.AreEqual (String.Empty, c2.ToString (), "A2");
		}
Esempio n. 28
0
		public void TestEmitDebugInformation2 ()
		{
			MCExtended mc = new MCExtended ();
			CommandLineBuilderExtension c1 = new CommandLineBuilderExtension ();
			CommandLineBuilderExtension c2 = new CommandLineBuilderExtension ();

			mc.EmitDebugInformation = false;
			mc.ARFC (c1);
			mc.ACLC (c2);
			
			Assert.AreEqual ("/debug-", c1.ToString (), "A1");
			Assert.AreEqual (String.Empty, c2.ToString (), "A2");
		}
Esempio n. 29
0
		public void TestTreatWarningsAsErrors2 ()
		{
			MCExtended mc = new MCExtended ();
			CommandLineBuilderExtension c1 = new CommandLineBuilderExtension ();
			CommandLineBuilderExtension c2 = new CommandLineBuilderExtension ();

			mc.TreatWarningsAsErrors = false;
			mc.ARFC (c1);
			mc.ACLC (c2);
			
			Assert.AreEqual ("/warnaserror-", c1.ToString (), "A1");
			Assert.AreEqual (String.Empty, c2.ToString (), "A2");
		}
Esempio n. 30
0
		public void TestUtf8Output2 ()
		{
			MCExtended mc = new MCExtended ();
			CommandLineBuilderExtension c1 = new CommandLineBuilderExtension ();
			CommandLineBuilderExtension c2 = new CommandLineBuilderExtension ();

			mc.Utf8Output = false;
			mc.ARFC (c1);
			mc.ACLC (c2);
			
			Assert.AreEqual (String.Empty, c1.ToString (), "A1");
			Assert.AreEqual (String.Empty, c2.ToString (), "A2");
		}
Esempio n. 31
0
		public void TestDelaySign2 ()
		{
			MCExtended mc = new MCExtended ();
			CommandLineBuilderExtension c1 = new CommandLineBuilderExtension ();
			CommandLineBuilderExtension c2 = new CommandLineBuilderExtension ();

			mc.DelaySign = false;
			mc.ARFC (c1);
			mc.ACLC (c2);
			
			Assert.AreEqual ("/delaysign-", c1.ToString (), "A1");
			Assert.AreEqual (String.Empty, c2.ToString (), "A2");
		}
Esempio n. 32
0
		public void TestWin32Resource ()
		{
			MCExtended mc = new MCExtended ();
			CommandLineBuilderExtension c1 = new CommandLineBuilderExtension ();
			CommandLineBuilderExtension c2 = new CommandLineBuilderExtension ();

			mc.Win32Resource = "A;B";
			mc.ARFC (c1);
			mc.ACLC (c2);
			
			Assert.AreEqual (String.Empty, c1.ToString (), "A1");
			Assert.AreEqual (String.Empty, c2.ToString (), "A2");
		}
Esempio n. 33
0
		public void TestAddModules ()
		{
			MCExtended mc = new MCExtended ();
			CommandLineBuilderExtension c1 = new CommandLineBuilderExtension ();
			CommandLineBuilderExtension c2 = new CommandLineBuilderExtension ();

			mc.AddModules = new string [2] { "A", "B" };
			mc.ARFC (c1);
			mc.ACLC (c2);
			
			Assert.AreEqual ("/addmodule:A,B", c1.ToString (), "A1");
			Assert.AreEqual (String.Empty, c2.ToString (), "A2");
		}