namespace MonoTests.Microsoft.Build.BuildEngine.Various {
[TestFixture]
public class EvaluationOrder {
- private string GetItems (Project proj, string name)
+ string GetItems (Project proj, string name)
{
BuildItemGroup big = proj.GetEvaluatedItemsByName (name);
string str = String.Empty;
}
[Test]
- [Category ("NotWorking")]
public void TestOrder0 ()
{
Engine engine = new Engine (Consts.BinPath);
}
[Test]
- [Category ("NotWorking")]
public void TestOrder1 ()
{
Engine engine = new Engine (Consts.BinPath);
}
[Test]
- [Category ("NotWorking")]
public void TestOrder2 ()
{
Engine engine = new Engine (Consts.BinPath);
}
[Test]
- [Category ("NotWorking")]
public void TestOrder5 ()
{
Engine engine = new Engine (Consts.BinPath);
}
[Test]
+ [Category ("NotDotNet")]
public void TestImportOrder1 ()
{
Engine engine = new Engine (Consts.BinPath);
}
[Test]
+ [Category ("NotDotNet")]
[ExpectedException (typeof (InvalidProjectFileException))]
public void TestImportOrder2 ()
{
}
[Test]
+ [Category ("NotDotNet")]
public void TestImportOrder5 ()
{
Engine engine = new Engine (Consts.BinPath);
}
[Test]
+ [Category ("NotDotNet")]
public void TestImportOrder6 ()
{
Engine engine = new Engine (Consts.BinPath);
}
[Test]
+ [Category ("NotDotNet")]
public void TestImportOrder7 ()
{
Engine engine = new Engine (Consts.BinPath);
Assert.AreEqual ("AnotherValue", proj.EvaluatedProperties ["ImportedProperty"].FinalValue, "A1");
Assert.AreEqual ("Another$(ImportedProperty)", proj.EvaluatedProperties ["ImportedProperty"].Value, "A2");
}
+
+ [Test]
+ public void TestUsingTaskOrder1 ()
+ {
+ Engine engine = new Engine (Consts.BinPath);
+ Project proj = engine.CreateNewProject ();
+
+ string documentString = @"
+ <Project xmlns=""http://schemas.microsoft.com/developer/msbuild/2003"">
+ <PropertyGroup>
+ <Property>Test\resources\TestTasks.dll</Property>
+ </PropertyGroup>
+
+ <UsingTask AssemblyFile='$(Property)' TaskName='TrueTestTask' />
+ </Project>
+ ";
+
+ proj.LoadXml (documentString);
+
+ UsingTask [] ut = new UsingTask [1];
+ proj.UsingTasks.CopyTo (ut, 0);
+
+ Assert.AreEqual ("$(Property)", ut [0].AssemblyFile, "A1");
+ }
}
}