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

github.com/mono/cecil.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'Test/Mono.Cecil.Tests')
-rw-r--r--Test/Mono.Cecil.Tests/BaseTestFixture.cs10
1 files changed, 2 insertions, 8 deletions
diff --git a/Test/Mono.Cecil.Tests/BaseTestFixture.cs b/Test/Mono.Cecil.Tests/BaseTestFixture.cs
index 046791b..6504249 100644
--- a/Test/Mono.Cecil.Tests/BaseTestFixture.cs
+++ b/Test/Mono.Cecil.Tests/BaseTestFixture.cs
@@ -99,14 +99,8 @@ namespace Mono.Cecil.Tests {
public static string FindResourcesDirectory (string sourceFilePath)
{
- var path = Path.GetDirectoryName (sourceFilePath);
- while (!Directory.Exists (Path.Combine (path, "Resources"))) {
- var old = path;
- path = Path.GetDirectoryName (path);
- Assert.AreNotEqual (old, path);
- }
-
- return Path.Combine (path, "Resources");
+ var resourcesDirectory = (string)AppContext.GetData ("Mono.Cecil.ResourcesDirectory")!;
+ return Path.GetFullPath (resourcesDirectory);
}
public static void AssertCode (string expected, MethodDefinition method)