diff options
| author | cvium <clausvium@gmail.com> | 2021-08-18 20:11:28 +0200 |
|---|---|---|
| committer | cvium <clausvium@gmail.com> | 2021-08-18 20:11:28 +0200 |
| commit | 468283bfb2cd7120b53e32cea67fd0c055d38812 (patch) | |
| tree | 1ccc7a6b302e2ad1cdcc88989bdd65b2581d34c7 | |
| parent | 663c79cba8be58196ec210bd792388b9cf86830c (diff) | |
Move test to TypedBaseItem folder to avoid conflicts
| -rw-r--r-- | tests/Jellyfin.Server.Implementations.Tests/TypedBaseItem/BaseItemKindTests.cs (renamed from tests/Jellyfin.Server.Implementations.Tests/BaseItem/BaseItemKindTests.cs) | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/Jellyfin.Server.Implementations.Tests/BaseItem/BaseItemKindTests.cs b/tests/Jellyfin.Server.Implementations.Tests/TypedBaseItem/BaseItemKindTests.cs index 061e81f30..63d97b3cb 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); |
