The Free Software Media System - Server Backend & API
Clean test
Cody Robiberod212b6fb08fc
diff --git a/tests/Jellyfin.Server.Implementations.Tests/BaseItem/BaseItemKindTests.cs b/tests/Jellyfin.Server.Implementations.Tests/BaseItem/BaseItemKindTests.csindex f3e7e208ac..061e81f30a 100644--- a/tests/Jellyfin.Server.Implementations.Tests/BaseItem/BaseItemKindTests.cs+++ b/tests/Jellyfin.Server.Implementations.Tests/BaseItem/BaseItemKindTests.cs@@ -25,14 +25,9 @@ namespace Jellyfin.Server.Implementations.Tests.BaseItempublic void GetBaseKindEnumTest(Type baseItemDescendantType){var defaultConstructor = baseItemDescendantType.GetConstructor(Type.EmptyTypes);-- Assert.NotNull(defaultConstructor);- if (defaultConstructor != null)- {- var instance = (MediaBrowser.Controller.Entities.BaseItem)defaultConstructor.Invoke(null);- var exception = Record.Exception(() => instance.GetBaseItemKind());- Assert.Null(exception);- }+ var instance = (MediaBrowser.Controller.Entities.BaseItem)defaultConstructor!.Invoke(null);+ var exception = Record.Exception(() => instance.GetBaseItemKind());+ Assert.Null(exception);}private class GetBaseItemDescendants : IEnumerable<object?[]>