public void TestCheckForOverflowUnderflow2() { CscExtended csc = new CscExtended(); CommandLineBuilderExtension clbe = new CommandLineBuilderExtension(); csc.CheckForOverflowUnderflow = false; csc.ARFC(clbe); Assert.AreEqual("/checked-", clbe.ToString(), "A1"); }
public void TestDocumentationFile() { CscExtended csc = new CscExtended(); CommandLineBuilderExtension clbe = new CommandLineBuilderExtension(); csc.DocumentationFile = "A"; csc.ARFC(clbe); Assert.AreEqual("/doc:A", clbe.ToString(), "A1"); }
public void TestDisabledWarningsComma() { CscExtended csc = new CscExtended(); CommandLineBuilderExtension clbe = new CommandLineBuilderExtension(); csc.DisabledWarnings = "A, B"; csc.ARFC(clbe); Assert.AreEqual("/nowarn:A;B", clbe.ToString(), "A1"); }
public void TestGenerateFullPaths2() { CscExtended csc = new CscExtended(); CommandLineBuilderExtension clbe = new CommandLineBuilderExtension(); csc.GenerateFullPaths = false; csc.ARFC(clbe); Assert.AreEqual("", clbe.ToString(), "A1"); }
public void TestErrorReport() { CscExtended csc = new CscExtended(); CommandLineBuilderExtension clbe = new CommandLineBuilderExtension(); csc.ErrorReport = "A"; csc.ARFC(clbe); Assert.AreEqual("/errorreport:A", clbe.ToString(), "A1"); }
public void TestModuleAssemblyName() { CscExtended csc = new CscExtended(); CommandLineBuilderExtension clbe = new CommandLineBuilderExtension(); csc.ModuleAssemblyName = "A'B"; csc.ARFC(clbe); Assert.AreEqual("/moduleassemblyname:\"A'B\"", clbe.ToString(), "A1"); }
public void TestLangVersion() { CscExtended csc = new CscExtended(); CommandLineBuilderExtension clbe = new CommandLineBuilderExtension(); csc.LangVersion = "A'B"; csc.ARFC(clbe); Assert.AreEqual("/langversion:\"A'B\"", clbe.ToString(), "A1"); }
public void TestPlatform() { CscExtended csc = new CscExtended(); CommandLineBuilderExtension clbe = new CommandLineBuilderExtension(); csc.Platform = "A"; csc.ARFC(clbe); Assert.AreEqual("/platform:A", clbe.ToString(), "A1"); }
public void TestWarning() { CscExtended csc = new CscExtended(); CommandLineBuilderExtension clbe = new CommandLineBuilderExtension(); csc.WarningLevel = 4; csc.ARFC(clbe); Assert.AreEqual("/warn:4", clbe.ToString(), "A1"); }
public void TestWarningNotAsErrors() { CscExtended csc = new CscExtended(); CommandLineBuilderExtension clbe = new CommandLineBuilderExtension(); csc.WarningsNotAsErrors = "A'B"; csc.ARFC(clbe); Assert.AreEqual("/warnaserror-:\"A'B\"", clbe.ToString(), "A1"); }
public void TestBaseAddress() { CscExtended csc = new CscExtended(); CommandLineBuilderExtension clbe = new CommandLineBuilderExtension(); csc.BaseAddress = "A"; csc.ARFC(clbe); Assert.AreEqual("/baseaddress:A", clbe.ToString(), "A1"); }
public void TestAllowUnsafeBlocks2() { CscExtended csc = new CscExtended(); CommandLineBuilderExtension clbe = new CommandLineBuilderExtension(); csc.AllowUnsafeBlocks = false; csc.ARFC(clbe); Assert.AreEqual("/unsafe-", clbe.ToString(), "A1"); }
public void TestWin32Resource() { CscExtended csc = new CscExtended(); CommandLineBuilderExtension c1 = new CommandLineBuilderExtension(); CommandLineBuilderExtension c2 = new CommandLineBuilderExtension(); csc.Win32Resource = "A;B"; csc.ARFC(c1); csc.ACLC(c2); Assert.AreEqual("/win32res:\"A;B\"", c1.ToString(), "A1"); Assert.AreEqual(String.Empty, c2.ToString(), "A2"); }
public void TestDefineConstants() { CscExtended csc = new CscExtended(); CommandLineBuilderExtension c1 = new CommandLineBuilderExtension(); CommandLineBuilderExtension c2 = new CommandLineBuilderExtension(); csc.DefineConstants = "A;B;;CD;;;Foo Bar"; csc.ARFC(c1); csc.ACLC(c2); Assert.AreEqual("/define:\"A;B;CD;Foo;Bar\"", c1.ToString(), "A1"); Assert.AreEqual(String.Empty, c2.ToString(), "A2"); }
public void TestDefineConstants2() { CscExtended csc = new CscExtended(); CommandLineBuilderExtension c1 = new CommandLineBuilderExtension(); CommandLineBuilderExtension c2 = new CommandLineBuilderExtension(); csc.DefineConstants = ";;;"; csc.ARFC(c1); csc.ACLC(c2); Assert.AreEqual(String.Empty, c1.ToString(), "A1"); Assert.AreEqual(String.Empty, c2.ToString(), "A2"); }
public void TestMainEntryPoint() { CscExtended csc = new CscExtended(); CommandLineBuilderExtension c1 = new CommandLineBuilderExtension(); CommandLineBuilderExtension c2 = new CommandLineBuilderExtension(); csc.MainEntryPoint = "A;B"; csc.ARFC(c1); csc.ACLC(c2); Assert.AreEqual("/main:\"A;B\"", c1.ToString(), "A1"); Assert.AreEqual(String.Empty, c2.ToString(), "A2"); }
public void TestResponseFiles() { CscExtended csc = new CscExtended(); CommandLineBuilderExtension c1 = new CommandLineBuilderExtension(); CommandLineBuilderExtension c2 = new CommandLineBuilderExtension(); csc.ResponseFiles = new ITaskItem [2] { new TaskItem("A\'Foo"), new TaskItem("B") }; csc.ARFC(c1); csc.ACLC(c2); Assert.AreEqual("@\"A'Foo\" @B", c1.ToString(), "A1"); Assert.AreEqual(String.Empty, c2.ToString(), "A2"); }
public void TestAdditionalLibPaths() { CscExtended csc = new CscExtended(); CommandLineBuilderExtension c1 = new CommandLineBuilderExtension(); CommandLineBuilderExtension c2 = new CommandLineBuilderExtension(); csc.AdditionalLibPaths = new string [2] { "A'Foo", "B" }; csc.ARFC(c1); csc.ACLC(c2); Assert.AreEqual("/lib:\"A'Foo\",B", c1.ToString(), "A1"); Assert.AreEqual(String.Empty, c2.ToString(), "A2"); }
public void TestReferences() { CscExtended csc = new CscExtended(); CommandLineBuilderExtension c1 = new CommandLineBuilderExtension(); CommandLineBuilderExtension c2 = new CommandLineBuilderExtension(); csc.References = new ITaskItem [2] { new TaskItem("A;C"), new TaskItem("B") }; csc.ARFC(c1); csc.ACLC(c2); Assert.AreEqual("/reference:\"A;C\" /reference:B", c1.ToString(), "A1"); Assert.AreEqual(String.Empty, c2.ToString(), "A2"); }
public void TestReferencesAlias() { CscExtended csc = new CscExtended(); CommandLineBuilderExtension c1 = new CommandLineBuilderExtension(); CommandLineBuilderExtension c2 = new CommandLineBuilderExtension(); TaskItem ti1 = new TaskItem("A"); ti1.SetMetadata("Aliases", "r1,global,r2"); csc.References = new ITaskItem[2] { ti1, new TaskItem("B") }; csc.ARFC(c1); csc.ACLC(c2); Assert.AreEqual("/reference:r1=A /reference:A /reference:r2=A /reference:B", c1.ToString(), "A1"); Assert.AreEqual(String.Empty, c2.ToString(), "A2"); }
public void TestModuleAssemblyName () { CscExtended csc = new CscExtended (); CommandLineBuilderExtension clbe = new CommandLineBuilderExtension (); csc.ModuleAssemblyName = "A'B"; csc.ARFC (clbe); Assert.AreEqual ("/moduleassemblyname:\"A'B\"", clbe.ToString (), "A1"); }
public void TestMainEntryPoint () { CscExtended csc = new CscExtended (); CommandLineBuilderExtension c1 = new CommandLineBuilderExtension (); CommandLineBuilderExtension c2 = new CommandLineBuilderExtension (); csc.MainEntryPoint = "A;B"; csc.ARFC (c1); csc.ACLC (c2); Assert.AreEqual ("/main:\"A;B\"", c1.ToString (), "A1"); Assert.AreEqual (String.Empty, c2.ToString (), "A2"); }
public void TestDefineConstants2 () { CscExtended csc = new CscExtended (); CommandLineBuilderExtension c1 = new CommandLineBuilderExtension (); CommandLineBuilderExtension c2 = new CommandLineBuilderExtension (); csc.DefineConstants = ";;;"; csc.ARFC (c1); csc.ACLC (c2); Assert.AreEqual (String.Empty, c1.ToString (), "A1"); Assert.AreEqual (String.Empty, c2.ToString (), "A2"); }
public void TestBaseAddress () { CscExtended csc = new CscExtended (); CommandLineBuilderExtension clbe = new CommandLineBuilderExtension (); csc.BaseAddress = "A"; csc.ARFC (clbe); Assert.AreEqual ("/baseaddress:A", clbe.ToString (), "A1"); }
public void TestReferences () { CscExtended csc = new CscExtended (); CommandLineBuilderExtension c1 = new CommandLineBuilderExtension (); CommandLineBuilderExtension c2 = new CommandLineBuilderExtension (); csc.References = new ITaskItem [2] { new TaskItem ("A;C"), new TaskItem ("B") }; csc.ARFC (c1); csc.ACLC (c2); Assert.AreEqual ("/reference:\"A;C\" /reference:B", c1.ToString (), "A1"); Assert.AreEqual (String.Empty, c2.ToString (), "A2"); }
public void TestDisabledWarningsComma () { CscExtended csc = new CscExtended (); CommandLineBuilderExtension clbe = new CommandLineBuilderExtension (); csc.DisabledWarnings = "A, B"; csc.ARFC (clbe); Assert.AreEqual ("/nowarn:A;B", clbe.ToString (), "A1"); }
public void TestCheckForOverflowUnderflow2 () { CscExtended csc = new CscExtended (); CommandLineBuilderExtension clbe = new CommandLineBuilderExtension (); csc.CheckForOverflowUnderflow = false; csc.ARFC (clbe); Assert.AreEqual ("/checked-", clbe.ToString (), "A1"); }
public void TestErrorReport () { CscExtended csc = new CscExtended (); CommandLineBuilderExtension clbe = new CommandLineBuilderExtension (); csc.ErrorReport = "A"; csc.ARFC (clbe); Assert.AreEqual ("/errorreport:A", clbe.ToString (), "A1"); }
public void TestDocumentationFile () { CscExtended csc = new CscExtended (); CommandLineBuilderExtension clbe = new CommandLineBuilderExtension (); csc.DocumentationFile = "A"; csc.ARFC (clbe); Assert.AreEqual ("/doc:A", clbe.ToString (), "A1"); }
public void TestResponseFiles () { CscExtended csc = new CscExtended (); CommandLineBuilderExtension c1 = new CommandLineBuilderExtension (); CommandLineBuilderExtension c2 = new CommandLineBuilderExtension (); csc.ResponseFiles = new ITaskItem [2] { new TaskItem ("A\'Foo"), new TaskItem ("B") }; csc.ARFC (c1); csc.ACLC (c2); Assert.AreEqual ("@\"A'Foo\" @B", c1.ToString (), "A1"); Assert.AreEqual (String.Empty, c2.ToString (), "A2"); }
public void TestDefineConstants () { CscExtended csc = new CscExtended (); CommandLineBuilderExtension c1 = new CommandLineBuilderExtension (); CommandLineBuilderExtension c2 = new CommandLineBuilderExtension (); csc.DefineConstants = "A;B;;CD;;;Foo Bar"; csc.ARFC (c1); csc.ACLC (c2); Assert.AreEqual ("/define:\"A;B;CD;Foo;Bar\"", c1.ToString (), "A1"); Assert.AreEqual (String.Empty, c2.ToString (), "A2"); }
public void TestWin32Resource () { CscExtended csc = new CscExtended (); CommandLineBuilderExtension c1 = new CommandLineBuilderExtension (); CommandLineBuilderExtension c2 = new CommandLineBuilderExtension (); csc.Win32Resource = "A;B"; csc.ARFC (c1); csc.ACLC (c2); Assert.AreEqual ("/win32res:\"A;B\"", c1.ToString (), "A1"); Assert.AreEqual (String.Empty, c2.ToString (), "A2"); }
public void TestPlatform () { CscExtended csc = new CscExtended (); CommandLineBuilderExtension clbe = new CommandLineBuilderExtension (); csc.Platform = "A"; csc.ARFC (clbe); Assert.AreEqual ("/platform:A", clbe.ToString (), "A1"); }
public void TestWarning () { CscExtended csc = new CscExtended (); CommandLineBuilderExtension clbe = new CommandLineBuilderExtension (); csc.WarningLevel = 4; csc.ARFC (clbe); Assert.AreEqual ("/warn:4", clbe.ToString (), "A1"); }
public void TestWarningNotAsErrors () { CscExtended csc = new CscExtended (); CommandLineBuilderExtension clbe = new CommandLineBuilderExtension (); csc.WarningsNotAsErrors = "A'B"; csc.ARFC (clbe); Assert.AreEqual ("/warnaserror-:\"A'B\"", clbe.ToString (), "A1"); }
public void TestAllowUnsafeBlocks2 () { CscExtended csc = new CscExtended (); CommandLineBuilderExtension clbe = new CommandLineBuilderExtension (); csc.AllowUnsafeBlocks = false; csc.ARFC (clbe); Assert.AreEqual ("/unsafe-", clbe.ToString (), "A1"); }
public void TestLangVersion () { CscExtended csc = new CscExtended (); CommandLineBuilderExtension clbe = new CommandLineBuilderExtension (); csc.LangVersion = "A'B"; csc.ARFC (clbe); Assert.AreEqual ("/langversion:\"A'B\"", clbe.ToString (), "A1"); }
public void TestGenerateFullPaths2 () { CscExtended csc = new CscExtended (); CommandLineBuilderExtension clbe = new CommandLineBuilderExtension (); csc.GenerateFullPaths = false; csc.ARFC (clbe); Assert.AreEqual ("", clbe.ToString (), "A1"); }
public void TestReferencesAlias () { CscExtended csc = new CscExtended (); CommandLineBuilderExtension c1 = new CommandLineBuilderExtension (); CommandLineBuilderExtension c2 = new CommandLineBuilderExtension (); TaskItem ti1 = new TaskItem ("A"); ti1.SetMetadata ("Aliases", "r1,global,r2"); csc.References = new ITaskItem[2] { ti1, new TaskItem ("B") }; csc.ARFC (c1); csc.ACLC (c2); Assert.AreEqual ("/reference:r1=A /reference:A /reference:r2=A /reference:B", c1.ToString (), "A1"); Assert.AreEqual (String.Empty, c2.ToString (), "A2"); }
public void TestAdditionalLibPaths () { CscExtended csc = new CscExtended (); CommandLineBuilderExtension c1 = new CommandLineBuilderExtension (); CommandLineBuilderExtension c2 = new CommandLineBuilderExtension (); csc.AdditionalLibPaths = new string [2] { "A'Foo", "B" }; csc.ARFC (c1); csc.ACLC (c2); Assert.AreEqual ("/lib:\"A'Foo\",B", c1.ToString (), "A1"); Assert.AreEqual (String.Empty, c2.ToString (), "A2"); }