Skip to content

Commit

Permalink
Minor corrections
Browse files Browse the repository at this point in the history
  • Loading branch information
adams85 committed Nov 19, 2024
1 parent 871ede7 commit 21555a8
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions test/Acornima.Tests/ParserTests.Fixtures.cs
Original file line number Diff line number Diff line change
Expand Up @@ -30,13 +30,12 @@ internal static string GetFixturesPath()
{
#if NETFRAMEWORK
var assemblyPath = new Uri(typeof(RegExpTests).GetTypeInfo().Assembly.CodeBase).LocalPath;
var assemblyDirectory = new FileInfo(assemblyPath).Directory;
#else
var assemblyPath = typeof(RegExpTests).GetTypeInfo().Assembly.Location;
var assemblyDirectory = new FileInfo(assemblyPath).Directory;
#endif
var assemblyDirectory = new FileInfo(assemblyPath).Directory;
var root = Path.Combine(assemblyDirectory?.Parent?.Parent?.Parent?.Parent?.FullName ?? "", "test", "Acornima.Tests");
return root ?? "";
return root;
}

public static IEnumerable<object[]> Fixtures(string relativePath)
Expand Down

0 comments on commit 21555a8

Please sign in to comment.