From ab96e7c17d4261eae6fcfed041b1a78566106887 Mon Sep 17 00:00:00 2001 From: Bjarke Berg Date: Wed, 3 Nov 2021 09:11:30 +0100 Subject: [PATCH] fix for linux+mac --- .../Umbraco.Core/Configurations/LanguageXmlTests.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/Umbraco.Tests.UnitTests/Umbraco.Core/Configurations/LanguageXmlTests.cs b/tests/Umbraco.Tests.UnitTests/Umbraco.Core/Configurations/LanguageXmlTests.cs index 38151cec7d7d..0de8044f75f6 100644 --- a/tests/Umbraco.Tests.UnitTests/Umbraco.Core/Configurations/LanguageXmlTests.cs +++ b/tests/Umbraco.Tests.UnitTests/Umbraco.Core/Configurations/LanguageXmlTests.cs @@ -30,7 +30,7 @@ public void Can_Load_Language_Xml_Files() private static DirectoryInfo GetLanguageDirectory() { var testDirectoryPathParts = Path.GetDirectoryName(TestContext.CurrentContext.TestDirectory) - .Split(new[] { Path.DirectorySeparatorChar }, StringSplitOptions.RemoveEmptyEntries); + .Split(new[] { Path.DirectorySeparatorChar, Path.AltDirectorySeparatorChar }, StringSplitOptions.RemoveEmptyEntries); var solutionDirectoryPathParts = testDirectoryPathParts .Take(Array.IndexOf(testDirectoryPathParts, "tests")); var languageFolderPathParts = new List(solutionDirectoryPathParts);