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);