From 21555a8d3051af48dd30b7f44871dfd1a71d917c Mon Sep 17 00:00:00 2001 From: Adam Simon Date: Tue, 19 Nov 2024 11:25:39 +0100 Subject: [PATCH] Minor corrections --- test/Acornima.Tests/ParserTests.Fixtures.cs | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/test/Acornima.Tests/ParserTests.Fixtures.cs b/test/Acornima.Tests/ParserTests.Fixtures.cs index 5eb7965..c018a1d 100644 --- a/test/Acornima.Tests/ParserTests.Fixtures.cs +++ b/test/Acornima.Tests/ParserTests.Fixtures.cs @@ -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 Fixtures(string relativePath)