From c834e5fa73973ea11a657a13f454ada9f51fbb7c Mon Sep 17 00:00:00 2001 From: soul Date: Thu, 26 Nov 2026 03:22:59 +0100 Subject: [PATCH] CreditsTests: compare the licence directory with forward slashes on both sides Path.GetDirectoryName returns backslashes on Windows, so the licence text never "sat beside" its fonts there. Co-Authored-By: Claude Sonnet 5.5 --- tests/Aetheria.Shared.Tests/CreditsTests.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/Aetheria.Shared.Tests/CreditsTests.cs b/tests/Aetheria.Shared.Tests/CreditsTests.cs index 9479e31e3..72c54d442 100644 --- a/tests/Aetheria.Shared.Tests/CreditsTests.cs +++ b/tests/Aetheria.Shared.Tests/CreditsTests.cs @@ -285,7 +285,7 @@ namespace Aetheria.Shared.Tests var notice = credits.Single(credit => credit.LicenceFile == creditFile).Notice; var licenceText = Read(creditFile); Assert.Contains(creditFile.Contains("UFL") ? "UBUNTU FONT LICENCE Version 1.0" : "SIL OPEN FONT LICENSE Version 1.1", licenceText); - Assert.True(Path.GetDirectoryName(creditFile) == Path.GetDirectoryName(fonts[0]).Replace('\\', '/'), "licence text sits beside its fonts"); + Assert.True(Path.GetDirectoryName(creditFile).Replace('\\', '/') == Path.GetDirectoryName(fonts[0]).Replace('\\', '/'), "licence text sits beside its fonts"); if (creditFile.Contains("OFL")) Assert.Contains(embedded, licenceText); Assert.Contains(embedded, notice); foreach (var font in fonts)