+2006-12-07 Marek Sieradzki <marek.sieradzki@gmail.com>
+
+ * EvaluationOrder.cs, Conditions.cs: More tests.
+
2006-12-05 Marek Sieradzki <marek.sieradzki@gmail.com>
* Conditions.cs: Enabled some more tests.
Assert.IsNull (proj.EvaluatedProperties ["l"], "A4");
}
+ [Test]
+ [Category ("NotWorking")]
+ public void TestCondition6 ()
+ {
+ Engine engine = new Engine (Consts.BinPath);
+ Project proj = engine.CreateNewProject ();
+
+ string documentString = @"
+ <Project xmlns=""http://schemas.microsoft.com/developer/msbuild/2003"">
+ <PropertyGroup>
+ <A>true</A>
+ <B>false</B>
+ <C Condition='$(A)'></C>
+ <D Condition='$(B)'></D>
+ <E Condition="" '$(A)' ""></E>
+ <F Condition="" '$(B)' ""></F>
+ </PropertyGroup>
+ </Project>
+ ";
+
+ proj.LoadXml (documentString);
+
+ Assert.IsNotNull (proj.EvaluatedProperties ["C"], "A1");
+ Assert.IsNull (proj.EvaluatedProperties ["D"], "A2");
+ Assert.IsNotNull (proj.EvaluatedProperties ["E"], "A3");
+ Assert.IsNull (proj.EvaluatedProperties ["F"], "A4");
+ }
+
[Test]
[ExpectedException (typeof (InvalidProjectFileException))]
public void TestIncorrectCondition1 ()
return str;
}
+ [Test]
+ [Category ("NotWorking")]
+ public void TestOrder0 ()
+ {
+ Engine engine = new Engine (Consts.BinPath);
+ Project proj = engine.CreateNewProject ();
+
+ string documentString = @"
+ <Project xmlns=""http://schemas.microsoft.com/developer/msbuild/2003"">
+ <ItemGroup>
+ <Item Include='A' />
+ </ItemGroup>
+
+ <PropertyGroup>
+ <A>A</A>
+ <Property>@(Item)$(A)$(B)</Property>
+ </PropertyGroup>
+ </Project>
+ ";
+
+ proj.LoadXml (documentString);
+
+ Assert.AreEqual ("@(Item)A", proj.EvaluatedProperties ["Property"].FinalValue, "A1");
+ Assert.AreEqual ("@(Item)$(A)$(B)", proj.EvaluatedProperties ["Property"].Value, "A2");
+ Assert.AreEqual ("A", GetItems (proj, "Item"), "A3");
+ }
+
[Test]
[Category ("NotWorking")]
public void TestOrder1 ()