From f39d6c297990c52f50822a5070266747e060c9ea Mon Sep 17 00:00:00 2001 From: Paul Johnson Date: Tue, 12 Oct 2021 10:15:52 +0100 Subject: [PATCH] Fix broken tests. --- .../Umbraco.Web.Common/FileNameTests.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/Umbraco.Tests.UnitTests/Umbraco.Web.Common/FileNameTests.cs b/tests/Umbraco.Tests.UnitTests/Umbraco.Web.Common/FileNameTests.cs index 58cce954868f..56a679b2b736 100644 --- a/tests/Umbraco.Tests.UnitTests/Umbraco.Web.Common/FileNameTests.cs +++ b/tests/Umbraco.Tests.UnitTests/Umbraco.Web.Common/FileNameTests.cs @@ -32,8 +32,8 @@ private string GetViewName(ViewResult viewResult, string separator = "/") private IEnumerable GetUiFiles(IEnumerable pathFromNetCore) { - var sourceRoot = TestContext.CurrentContext.TestDirectory.Split("Umbraco.Tests.UnitTests")[0]; - var pathToFiles = Path.Combine(sourceRoot, "Umbraco.Web.UI"); + var testsRoot = TestContext.CurrentContext.TestDirectory.Split("Umbraco.Tests.UnitTests")[0]; + var pathToFiles = Path.Combine(testsRoot, "..", "src", "Umbraco.Web.UI"); foreach (var pathSection in pathFromNetCore) { pathToFiles = Path.Combine(pathToFiles, pathSection);