diff options
author | Atsushi Eno <atsushieno@gmail.com> | 2014-01-24 12:33:14 +0400 |
---|---|---|
committer | Atsushi Eno <atsushieno@gmail.com> | 2014-01-24 12:34:27 +0400 |
commit | 6c9fb62368db5b6c46bd4f89162e5add47c821bb (patch) | |
tree | ce365b38e515113142f8cac511a837ab2bb61153 /mcs/class/Microsoft.Build/Test | |
parent | 4dabbbc56d34ca97ac08efbd35462417c87b2026 (diff) |
Fix build (and cosmetic code formatting).
Diffstat (limited to 'mcs/class/Microsoft.Build/Test')
-rw-r--r-- | mcs/class/Microsoft.Build/Test/Microsoft.Build.Execution/ProjectTargetInstanceTest.cs | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/mcs/class/Microsoft.Build/Test/Microsoft.Build.Execution/ProjectTargetInstanceTest.cs b/mcs/class/Microsoft.Build/Test/Microsoft.Build.Execution/ProjectTargetInstanceTest.cs index 2ae7148c8f6..9d12b288027 100644 --- a/mcs/class/Microsoft.Build/Test/Microsoft.Build.Execution/ProjectTargetInstanceTest.cs +++ b/mcs/class/Microsoft.Build/Test/Microsoft.Build.Execution/ProjectTargetInstanceTest.cs @@ -139,11 +139,13 @@ namespace MonoTests.Microsoft.Build.Execution <Error Text='expected error' /> </Target> </Project>"; - var xml = XmlReader.Create (new StringReader (project_xml)); - var root = ProjectRootElement.Create (xml); + var xml = XmlReader.Create (new StringReader (project_xml)); + var root = ProjectRootElement.Create (xml); root.FullPath = "ProjectInstanceTest.DependsOnTargets.proj"; - var proj = new ProjectInstance (root); + var proj = new ProjectInstance (root); +#if NET_4_5 Assert.AreEqual (2, proj.Targets.Count, "#1"); +#endif Assert.IsFalse (proj.Build ("Bar", new ILogger [0]), "#2"); } |