X-Git-Url: http://wien.tomnetworks.com/gitweb/?a=blobdiff_plain;f=mcs%2Fclass%2FMicrosoft.Build.Engine%2FTest%2Fvarious%2FProjectElement.cs;h=7f675a1d5f821315300f8ffe5c9f29575a3a66ff;hb=aaca175b4467ce44dcb8fd5260099148eb4e7284;hp=7e52c74f52facb9ca3ac341b258de019f362e598;hpb=da4f9e9b2afb23791029d0bb09d78b868aabd870;p=mono.git diff --git a/mcs/class/Microsoft.Build.Engine/Test/various/ProjectElement.cs b/mcs/class/Microsoft.Build.Engine/Test/various/ProjectElement.cs index 7e52c74f52f..7f675a1d5f8 100644 --- a/mcs/class/Microsoft.Build.Engine/Test/various/ProjectElement.cs +++ b/mcs/class/Microsoft.Build.Engine/Test/various/ProjectElement.cs @@ -66,5 +66,21 @@ namespace MonoTests.Microsoft.Build.BuildEngine.Various { cproj = CloneProject (proj); Assert.AreEqual (proj.DefaultTargets, cproj.DefaultTargets, "A4"); } + + [Test] + [ExpectedException (typeof (InvalidProjectFileException))] + public void TestRootElement () + { + Engine engine; + Project proj; + string documentString = @" + + + "; + + engine = new Engine (Consts.BinPath); + proj = engine.CreateNewProject (); + proj.LoadXml (documentString); + } } }