コード例 #1
0
        public void SingleReference()
        {
            MockMbas mbas = new MockMbas();

            mbas.References = new TaskItem[] { new TaskItem("proj refs\\Test.dll") };
            Assert.AreEqual("-r:\"proj refs\\Test.dll\"", mbas.GetCommandLine());
        }
コード例 #2
0
        public void SingleSourceFile()
        {
            MockMbas mbas = new MockMbas();

            mbas.Sources = new TaskItem[] { new TaskItem("proj src\\Main.vb") };
            Assert.AreEqual("\"proj src\\Main.vb\"", mbas.GetCommandLine());
        }
コード例 #3
0
        public void MainEntryPoint()
        {
            MockMbas mbas = new MockMbas();

            mbas.MainEntryPoint = "Console.MainClass.Main";
            Assert.AreEqual("-main:Console.MainClass.Main", mbas.GetCommandLine());
        }
コード例 #4
0
        public void DefineConstants()
        {
            MockMbas mbas = new MockMbas();

            mbas.DefineConstants = "DEBUG=1,TRACE=1";
            Assert.AreEqual("-define:\"DEBUG=1,TRACE=1\"", mbas.GetCommandLine());
        }
コード例 #5
0
        public void AdditionalLibPaths()
        {
            MockMbas mbas = new MockMbas();

            mbas.AdditionalLibPaths = new string[] { "proj\\My libs", "proj\\My libs2" };
            Assert.AreEqual("-lib:\"proj\\My libs\",\"proj\\My libs2\"", mbas.GetCommandLine());
        }
コード例 #6
0
        public void FullDebugging()
        {
            MockMbas mbas = new MockMbas();

            mbas.DebugType = "Full";
            Assert.AreEqual("-debug:full", mbas.GetCommandLine());
        }
コード例 #7
0
        public void EmitDebuggingInfo()
        {
            MockMbas mbas = new MockMbas();

            mbas.EmitDebugInformation = true;
            Assert.AreEqual("-debug", mbas.GetCommandLine());
        }
コード例 #8
0
        public void WarnAsError()
        {
            MockMbas mbas = new MockMbas();

            mbas.TreatWarningsAsErrors = true;
            Assert.AreEqual("-warnaserror", mbas.GetCommandLine());
        }
コード例 #9
0
        public void WinExeTarget()
        {
            MockMbas mbas = new MockMbas();

            mbas.TargetType = "Exe";
            Assert.AreEqual("-target:exe", mbas.GetCommandLine());
        }
コード例 #10
0
        public void OptionStrict()
        {
            MockMbas mbas = new MockMbas();

            mbas.OptionStrict = true;
            Assert.AreEqual("-optionstrict", mbas.GetCommandLine());
        }
コード例 #11
0
        public void Unsafe()
        {
            MockMbas mbas = new MockMbas();

            mbas.AllowUnsafeBlocks = true;
            Assert.AreEqual("-unsafe", mbas.GetCommandLine());
        }
コード例 #12
0
        public void NoStandardLib()
        {
            MockMbas mbas = new MockMbas();

            mbas.NoStandardLib = true;
            Assert.AreEqual("-nostdlib", mbas.GetCommandLine());
        }
コード例 #13
0
        public void NoWarnings()
        {
            MockMbas mbas = new MockMbas();

            mbas.NoWarnings = true;
            Assert.AreEqual("-nowarn", mbas.GetCommandLine());
        }
コード例 #14
0
        public void DisabledWarnings()
        {
            MockMbas mbas = new MockMbas();

            mbas.DisabledWarnings = "1234,5678";
            Assert.AreEqual("-ignorewarn:\"1234,5678\"", mbas.GetCommandLine());
        }
コード例 #15
0
        public void RootNamespace()
        {
            MockMbas mbas = new MockMbas();

            mbas.RootNamespace = "MyNamespace";
            Assert.AreEqual("-rootnamespace:MyNamespace", mbas.GetCommandLine());
        }
コード例 #16
0
        public void WarningLevel()
        {
            MockMbas mbas = new MockMbas();

            mbas.WarningLevel = 3;
            Assert.AreEqual("-wlevel:3", mbas.GetCommandLine());
        }
コード例 #17
0
        public void RemoveIntChecks()
        {
            MockMbas mbas = new MockMbas();

            mbas.RemoveIntegerChecks = true;
            Assert.AreEqual("-removeintchecks", mbas.GetCommandLine());
        }
コード例 #18
0
        public void OptionExplicit()
        {
            MockMbas mbas = new MockMbas();

            mbas.OptionExplicit = true;
            Assert.AreEqual("-optionexplicit", mbas.GetCommandLine());
        }
コード例 #19
0
		public void OutputAssembly()
		{
			MockMbas mbas = new MockMbas();
			string outputAssembly = @"obj\debug\test.exe";
			mbas.OutputAssembly = new TaskItem(outputAssembly);
			Assert.AreEqual(@"-out:obj\debug\test.exe", mbas.GetCommandLine());
		}
コード例 #20
0
        public void NoLogo()
        {
            MockMbas mbas = new MockMbas();

            mbas.NoLogo = true;
            Assert.AreEqual("-nologo", mbas.GetCommandLine());
        }
コード例 #21
0
        public void OutputAssembly()
        {
            MockMbas mbas           = new MockMbas();
            string   outputAssembly = @"obj\debug\test.exe";

            mbas.OutputAssembly = new TaskItem(outputAssembly);
            Assert.AreEqual(@"-out:obj\debug\test.exe", mbas.GetCommandLine());
        }
コード例 #22
0
        public void MultipleImports()
        {
            MockMbas mbas = new MockMbas();

            mbas.Imports = new TaskItem[] { new TaskItem("System.IO"),
                                            new TaskItem("Microsoft.VisualBasic") };
            Assert.AreEqual("-imports:System.IO -imports:Microsoft.VisualBasic", mbas.GetCommandLine());
        }
コード例 #23
0
        public void EmbeddedResources()
        {
            MockMbas mbas = new MockMbas();

            mbas.Resources = new TaskItem[] { new TaskItem("proj res\\Test.xml"),
                                              new TaskItem("proj res\\Run.xml") };
            Assert.AreEqual("-resource:\"proj res\\Test.xml\" -resource:\"proj res\\Run.xml\"", mbas.GetCommandLine());
        }
コード例 #24
0
		public void NoWarnings()
		{
			MockMbas mbas = new MockMbas();
			mbas.NoWarnings = true;
			Assert.AreEqual("-nowarn", mbas.GetCommandLine());						
		}
コード例 #25
0
		public void DisabledWarnings()
		{
			MockMbas mbas = new MockMbas();
			mbas.DisabledWarnings = "1234,5678";
			Assert.AreEqual("-ignorewarn:\"1234,5678\"", mbas.GetCommandLine());					
		}	
コード例 #26
0
		public void RootNamespace()
		{
			MockMbas mbas = new MockMbas();
			mbas.RootNamespace = "MyNamespace";
			Assert.AreEqual("-rootnamespace:MyNamespace", mbas.GetCommandLine());				
		}	
コード例 #27
0
		public void WarningLevel()
		{
			MockMbas mbas = new MockMbas();
			mbas.WarningLevel = 3;
			Assert.AreEqual("-wlevel:3", mbas.GetCommandLine());						
		}
コード例 #28
0
		public void MultipleImports()
		{
			MockMbas mbas = new MockMbas();
			mbas.Imports = new TaskItem[] { new TaskItem("System.IO"),
				new TaskItem("Microsoft.VisualBasic") };
			Assert.AreEqual("-imports:System.IO -imports:Microsoft.VisualBasic", mbas.GetCommandLine());
		}	
コード例 #29
0
		public void RemoveIntChecks()
		{
			MockMbas mbas = new MockMbas();
			mbas.RemoveIntegerChecks = true;
			Assert.AreEqual("-removeintchecks", mbas.GetCommandLine());				
		}	
コード例 #30
0
		public void OptionStrict()
		{
			MockMbas mbas = new MockMbas();
			mbas.OptionStrict = true;
			Assert.AreEqual("-optionstrict", mbas.GetCommandLine());				
		}
コード例 #31
0
		public void WarnAsError()
		{
			MockMbas mbas = new MockMbas();
			mbas.TreatWarningsAsErrors = true;
			Assert.AreEqual("-warnaserror", mbas.GetCommandLine());					
		}	
コード例 #32
0
		public void AdditionalLibPaths()
		{
			MockMbas mbas = new MockMbas();
			mbas.AdditionalLibPaths = new string[] { "proj\\My libs", "proj\\My libs2" };
			Assert.AreEqual("-lib:\"proj\\My libs\",\"proj\\My libs2\"", mbas.GetCommandLine());
		}		
コード例 #33
0
		public void EmbeddedResources()
		{
			MockMbas mbas = new MockMbas();
			mbas.Resources = new TaskItem[] { new TaskItem("proj res\\Test.xml"),
				new TaskItem("proj res\\Run.xml") };
			Assert.AreEqual("-resource:\"proj res\\Test.xml\" -resource:\"proj res\\Run.xml\"", mbas.GetCommandLine());
		}		
コード例 #34
0
		public void SingleReference()
		{
			MockMbas mbas = new MockMbas();
			mbas.References = new TaskItem[] { new TaskItem("proj refs\\Test.dll") };
			Assert.AreEqual("-r:\"proj refs\\Test.dll\"", mbas.GetCommandLine());
		}
コード例 #35
0
		public void SingleSourceFile()
		{
			MockMbas mbas = new MockMbas();
			mbas.Sources = new TaskItem[] { new TaskItem("proj src\\Main.vb") };
			Assert.AreEqual("\"proj src\\Main.vb\"", mbas.GetCommandLine());
		}
コード例 #36
0
        public void NoArgs()
        {
            MockMbas mbas = new MockMbas();

            Assert.AreEqual(String.Empty, mbas.GetCommandLine());
        }
コード例 #37
0
		public void NoArgs()
		{
			MockMbas mbas = new MockMbas();
			Assert.AreEqual(String.Empty, mbas.GetCommandLine());
		}
コード例 #38
0
		public void OptionExplicit()
		{
			MockMbas mbas = new MockMbas();
			mbas.OptionExplicit = true;
			Assert.AreEqual("-optionexplicit", mbas.GetCommandLine());				
		}
コード例 #39
0
		public void NoStandardLib()
		{
			MockMbas mbas = new MockMbas();
			mbas.NoStandardLib = true;
			Assert.AreEqual("-nostdlib", mbas.GetCommandLine());				
		}	
コード例 #40
0
		public void FullDebugging()
		{
			MockMbas mbas = new MockMbas();
			mbas.DebugType = "Full";
			Assert.AreEqual("-debug:full", mbas.GetCommandLine());			
		}
コード例 #41
0
		public void Unsafe()
		{
			MockMbas mbas = new MockMbas();
			mbas.AllowUnsafeBlocks = true;
			Assert.AreEqual("-unsafe", mbas.GetCommandLine());					
		}	
コード例 #42
0
		public void DefineConstants()
		{
			MockMbas mbas = new MockMbas();
			mbas.DefineConstants = "DEBUG=1,TRACE=1";
			Assert.AreEqual("-define:\"DEBUG=1,TRACE=1\"", mbas.GetCommandLine());
		}	
コード例 #43
0
		public void WinExeTarget()
		{
			MockMbas mbas = new MockMbas();
			mbas.TargetType = "Exe";
			Assert.AreEqual("-target:exe", mbas.GetCommandLine());			
		}
コード例 #44
0
		public void MainEntryPoint()
		{
			MockMbas mbas = new MockMbas();
			mbas.MainEntryPoint = "Console.MainClass.Main";
			Assert.AreEqual("-main:Console.MainClass.Main",  mbas.GetCommandLine());						
		}	
コード例 #45
0
		public void EmitDebuggingInfo()
		{
			MockMbas mbas = new MockMbas();
			mbas.EmitDebugInformation = true;
			Assert.AreEqual("-debug", mbas.GetCommandLine());
		}
コード例 #46
0
		public void NoLogo()
		{
			MockMbas mbas = new MockMbas();
			mbas.NoLogo = true;
			Assert.AreEqual("-nologo", mbas.GetCommandLine());				
		}