Beispiel #1
0
        public void TestExecution()
        {
            string documentString = @"
                                <Project xmlns=""http://schemas.microsoft.com/developer/msbuild/2003"">
					<Target Name='1'>
						<Warning Text='Text' HelpKeyword='HelpKeyword' Code='Code' />
					</Target>
				</Project>
			"            ;

            engine     = new Engine(Consts.BinPath);
            testLogger = new TestWarningLogger();
            engine.RegisterLogger(testLogger);

            project = engine.CreateNewProject();
            project.LoadXml(documentString);
            project.Build("1");

            Assert.AreEqual(0, testLogger.CheckHead("Text", "HelpKeyword", "Code"), "A1");
        }
Beispiel #2
0
		public void TestExecution ()
		{
			string documentString = @"
                                <Project xmlns=""http://schemas.microsoft.com/developer/msbuild/2003"">
					<Target Name='1'>
						<Warning Text='Text' HelpKeyword='HelpKeyword' Code='Code' />
					</Target>
				</Project>
			";
			
			engine = new Engine (Consts.BinPath);
			testLogger = new TestWarningLogger ();
			engine.RegisterLogger (testLogger);
			
			project = engine.CreateNewProject ();
			project.LoadXml (documentString);
			project.Build ("1");
			
			Assert.AreEqual (0, testLogger.CheckHead ("Text", "HelpKeyword", "Code"), "A1");
		}