aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCody Robibero <cody@robibe.ro>2021-08-04 06:24:25 -0600
committerCody Robibero <cody@robibe.ro>2021-08-04 06:24:25 -0600
commitd212b6fb08fc8d45008499f3dfce33f59bb425e3 (patch)
tree6dbe4011ec4664b792474d776d9974b88ba308ea
parent39e84ba4abbcf0796ad87984c41c0f26b8783e71 (diff)
Clean test
-rw-r--r--tests/Jellyfin.Server.Implementations.Tests/BaseItem/BaseItemKindTests.cs11
1 files changed, 3 insertions, 8 deletions
diff --git a/tests/Jellyfin.Server.Implementations.Tests/BaseItem/BaseItemKindTests.cs b/tests/Jellyfin.Server.Implementations.Tests/BaseItem/BaseItemKindTests.cs
index f3e7e208a..061e81f30 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.BaseItem
public 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?[]>