The Free Software Media System - Server Backend & API
Move test to TypedBaseItem folder to avoid conflicts
cvium468283bfb2cd
diff --git a/tests/Jellyfin.Server.Implementations.Tests/BaseItem/BaseItemKindTests.cs b/tests/Jellyfin.Server.Implementations.Tests/TypedBaseItem/BaseItemKindTests.cssimilarity index 93%rename from tests/Jellyfin.Server.Implementations.Tests/BaseItem/BaseItemKindTests.csrename to tests/Jellyfin.Server.Implementations.Tests/TypedBaseItem/BaseItemKindTests.csindex 061e81f30a..63d97b3cb2 100644--- a/tests/Jellyfin.Server.Implementations.Tests/BaseItem/BaseItemKindTests.cs+++ b/tests/Jellyfin.Server.Implementations.Tests/TypedBaseItem/BaseItemKindTests.cs@@ -8,13 +8,13 @@ using Jellyfin.Data.Enums;using Xunit;using Xunit.Sdk;-namespace Jellyfin.Server.Implementations.Tests.BaseItem+namespace Jellyfin.Server.Implementations.Tests.TypedBaseItem{public class BaseItemKindTests{[Theory][ClassData(typeof(GetBaseItemDescendants))]- public void BaseItemKindEnumTest(Type baseItemType)+ public void EnumParse_GivenValidBaseItemType_ReturnsEnumValue(Type baseItemType){var enumValue = Enum.Parse<BaseItemKind>(baseItemType.Name);Assert.True(Enum.IsDefined(typeof(BaseItemKind), enumValue));@@ -22,7 +22,7 @@ namespace Jellyfin.Server.Implementations.Tests.BaseItem[Theory][ClassData(typeof(GetBaseItemDescendants))]- public void GetBaseKindEnumTest(Type baseItemDescendantType)+ public void GetBaseItemKind_WhenCalledAfterDefaultCtor_DoesNotThrow(Type baseItemDescendantType){var defaultConstructor = baseItemDescendantType.GetConstructor(Type.EmptyTypes);var instance = (MediaBrowser.Controller.Entities.BaseItem)defaultConstructor!.Invoke(null);