From 318f11e79331e4786c44734ce496eb6485201c2b Mon Sep 17 00:00:00 2001 From: Bond-009 Date: Sun, 12 Feb 2023 19:25:54 +0100 Subject: [PATCH] Fix error in XmlTvListingsProviderTests (#9302) --- .../LiveTv/Listings/XmlTvListingsProviderTests.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/Jellyfin.Server.Implementations.Tests/LiveTv/Listings/XmlTvListingsProviderTests.cs b/tests/Jellyfin.Server.Implementations.Tests/LiveTv/Listings/XmlTvListingsProviderTests.cs index ab1896c0d7..92b4178fdb 100644 --- a/tests/Jellyfin.Server.Implementations.Tests/LiveTv/Listings/XmlTvListingsProviderTests.cs +++ b/tests/Jellyfin.Server.Implementations.Tests/LiveTv/Listings/XmlTvListingsProviderTests.cs @@ -83,7 +83,7 @@ public class XmlTvListingsProviderTests var programsList = programs.ToList(); Assert.Single(programsList); var program = programsList[0]; - Assert.DoesNotContain(program.Genres, g => string.Equals(g, string.Empty, StringComparison.Ordinal)); + Assert.DoesNotContain(program.Genres, g => string.IsNullOrEmpty(g)); Assert.Equal("3297", program.ChannelId); } }