8000 Make probing of test resources more reliable · coding2233/libgit2sharp4unity3d@4407bcb · GitHub
[go: up one dir, main page]

Skip to content

Commit 4407bcb

Browse files
committed
Make probing of test resources more reliable
1 parent 126351e commit 4407bcb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

LibGit2Sharp.Tests/TestHelpers/BaseFixture.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ private static void SetUpTestEnvironment()
5656
{
5757
IsFileSystemCaseSensitive = IsFileSystemCaseSensitiveInternal();
5858

59-
string initialAssemblyParentFolder = Directory.GetParent(new Uri(Assembly.GetExecutingAssembly().EscapedCodeBase).LocalPath).FullName;
59+
string initialAssemblyParentFolder = Directory.GetParent(new Uri(typeof(BaseFixture).Assembly.EscapedCodeBase).LocalPath).FullName;
6060

6161
const string sourceRelativePath = @"../../Resources";
6262
ResourcesDirectory = new DirectoryInfo(Path.Combine(initialAssemblyParentFolder, sourceRelativePath));

0 commit comments

Comments
 (0)
0