cproj = CloneProject (proj);
Assert.AreEqual (proj.DefaultTargets, cproj.DefaultTargets, "A4");
}
+
+ [Test]
+ [ExpectedException (typeof (InvalidProjectFileException))]
+ public void TestRootElement ()
+ {
+ Engine engine;
+ Project proj;
+ string documentString = @"
+ <something>
+ </something>
+ ";
+
+ engine = new Engine (Consts.BinPath);
+ proj = engine.CreateNewProject ();
+ proj.LoadXml (documentString);
+ }
}
}