Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexander Kyte <alexmkyte@gmail.com>2017-06-07 21:44:36 +0300
committerAlexander Kyte <alexmkyte@gmail.com>2017-08-30 19:54:47 +0300
commita4edbde01e2d71230a9506cbbee29ca8276e7705 (patch)
tree36cab56f649447c87fde78c20b4e870e9347de26 /mcs/class/Microsoft.Build
parentc872e0a100fe2474b0f5ff7993940b66493fe7a9 (diff)
[runtime] Move testing dll into profile
Diffstat (limited to 'mcs/class/Microsoft.Build')
-rw-r--r--mcs/class/Microsoft.Build/Test/Microsoft.Build.Construction/ProjectRootElementTest.cs13
1 files changed, 11 insertions, 2 deletions
diff --git a/mcs/class/Microsoft.Build/Test/Microsoft.Build.Construction/ProjectRootElementTest.cs b/mcs/class/Microsoft.Build/Test/Microsoft.Build.Construction/ProjectRootElementTest.cs
index 2fbb9f18587..8a0a2991f24 100644
--- a/mcs/class/Microsoft.Build/Test/Microsoft.Build.Construction/ProjectRootElementTest.cs
+++ b/mcs/class/Microsoft.Build/Test/Microsoft.Build.Construction/ProjectRootElementTest.cs
@@ -30,8 +30,13 @@ namespace MonoTests.Microsoft.Build.Construction
var xml = XmlReader.Create (new StringReader (empty_project_xml), null, "file:///foo.xml");
// This creator does not fill FullPath...
var root = ProjectRootElement.Create (xml);
+
+ // Expected to run from mcs/class/lib/profile
+ var dir_name = Path.GetDirectoryName (new Uri (GetType ().Assembly.CodeBase).LocalPath);
+ var namespace_path = Path.Combine (Directory.GetParent (dir_name).Parent.FullName, "Microsoft.Build");
+
Assert.IsNull (root.FullPath, "#2");
- Assert.AreEqual (Path.GetDirectoryName (new Uri (GetType ().Assembly.CodeBase).LocalPath), root.DirectoryPath, "#3");
+ Assert.AreEqual (namespace_path, root.DirectoryPath, "#3");
}
[Test]
@@ -39,7 +44,11 @@ namespace MonoTests.Microsoft.Build.Construction
{
var root = ProjectRootElement.Create ();
root.FullPath = "test" + Path.DirectorySeparatorChar + "foo.xml";
- var full = Path.Combine (Path.GetDirectoryName (new Uri (GetType ().Assembly.CodeBase).LocalPath), "test", "foo.xml");
+
+ // Expected to run from mcs/class/lib/profile
+ var dir_name = Path.GetDirectoryName (new Uri (GetType ().Assembly.CodeBase).LocalPath);
+ var namespace_path = Path.Combine (Directory.GetParent (dir_name).Parent.FullName, "Microsoft.Build");
+ var full = Path.Combine (namespace_path, "test", "foo.xml");
Assert.AreEqual (full, root.FullPath, "#1");
Assert.AreEqual (Path.GetDirectoryName (full), root.DirectoryPath, "#1");
}