From ab8e775df05bcd3d1632bb7e53fcfad99a3bf937 Mon Sep 17 00:00:00 2001 From: Matt Nadareski Date: Tue, 16 Jul 2024 13:03:58 -0400 Subject: [PATCH] Fix broken test logic --- CHANGELIST.md | 1 + MPF.Test/Frontend/Tools/InfoToolTests.cs | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/CHANGELIST.md b/CHANGELIST.md index 0cf3c5a7..a3587609 100644 --- a/CHANGELIST.md +++ b/CHANGELIST.md @@ -40,6 +40,7 @@ - Don't set MediaType if parameters ambiguous - Fix parameters after extension change - Fix logic for deducing region from PlayStation ISN (John Veness) +- Fix broken test logic ### 3.2.0 (2024-06-20) diff --git a/MPF.Test/Frontend/Tools/InfoToolTests.cs b/MPF.Test/Frontend/Tools/InfoToolTests.cs index 32ff8e40..578f2a14 100644 --- a/MPF.Test/Frontend/Tools/InfoToolTests.cs +++ b/MPF.Test/Frontend/Tools/InfoToolTests.cs @@ -20,7 +20,7 @@ namespace MPF.Test.Frontend.Tools [InlineData("superhero\\blah&foo.bin", "superhero\\blah&foo.bin")] public void NormalizeOutputPathsTest(string? outputPath, string? expectedPath) { - if (!string.IsNullOrWhiteSpace(expectedPath)) + if (!string.IsNullOrEmpty(expectedPath)) expectedPath = Path.GetFullPath(expectedPath); string actualPath = FrontendTool.NormalizeOutputPaths(outputPath, true);