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"); }
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"); }
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"); }
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"); }
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"); }
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"); }
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"); }
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"); }
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"); }
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"); }
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"); }
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"); }
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"); }
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"); }
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"); }
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"); }
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"); }
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"); }
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"); }
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"); }
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"); }
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"); }
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"); }
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"); }
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"); }
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"); }
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"); }
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"); }
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"); }
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"); }
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"); }
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"); }
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"); }