diff --git a/src/Stryker.Core/Stryker.Core.UnitTest/Mutants/GeneratedRegexOrchestratorTests.cs b/src/Stryker.Core/Stryker.Core.UnitTest/Mutants/GeneratedRegexOrchestratorTests.cs index 93a74f9bb..98db52a1e 100644 --- a/src/Stryker.Core/Stryker.Core.UnitTest/Mutants/GeneratedRegexOrchestratorTests.cs +++ b/src/Stryker.Core/Stryker.Core.UnitTest/Mutants/GeneratedRegexOrchestratorTests.cs @@ -76,9 +76,9 @@ private async Task ShouldMutateCompiledSourceToExpectedAsync(string methodName, new CSharpCompilationOptions(OutputKind .DynamicallyLinkedLibrary)); - var regexGeneratorDll = Path.Combine(basePath, @"..\..\..\packs\Microsoft.NETCore.App.Ref\", + var regexGeneratorDll = Path.Combine(basePath, "..", "..", "..", "packs", "Microsoft.NETCore.App.Ref", Path.GetFileName(basePath), - @"analyzers\dotnet\cs\System.Text.RegularExpressions.Generator.dll"); + "analyzers", "dotnet", "cs", "System.Text.RegularExpressions.Generator.dll"); var sourceGenerator = Activator.CreateInstanceFrom(regexGeneratorDll, "System.Text.RegularExpressions.Generator.RegexGenerator")