mirror of
https://github.com/jellyfin/jellyfin.git
synced 2025-06-23 15:30:56 -04:00
Clean test
This commit is contained in:
parent
39e84ba4ab
commit
d212b6fb08
@ -25,15 +25,10 @@ namespace Jellyfin.Server.Implementations.Tests.BaseItem
|
|||||||
public void GetBaseKindEnumTest(Type baseItemDescendantType)
|
public void GetBaseKindEnumTest(Type baseItemDescendantType)
|
||||||
{
|
{
|
||||||
var defaultConstructor = baseItemDescendantType.GetConstructor(Type.EmptyTypes);
|
var defaultConstructor = baseItemDescendantType.GetConstructor(Type.EmptyTypes);
|
||||||
|
var instance = (MediaBrowser.Controller.Entities.BaseItem)defaultConstructor!.Invoke(null);
|
||||||
Assert.NotNull(defaultConstructor);
|
|
||||||
if (defaultConstructor != null)
|
|
||||||
{
|
|
||||||
var instance = (MediaBrowser.Controller.Entities.BaseItem)defaultConstructor.Invoke(null);
|
|
||||||
var exception = Record.Exception(() => instance.GetBaseItemKind());
|
var exception = Record.Exception(() => instance.GetBaseItemKind());
|
||||||
Assert.Null(exception);
|
Assert.Null(exception);
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
private class GetBaseItemDescendants : IEnumerable<object?[]>
|
private class GetBaseItemDescendants : IEnumerable<object?[]>
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user