diff options
| author | cvium <clausvium@gmail.com> | 2021-05-31 13:55:54 +0200 |
|---|---|---|
| committer | cvium <clausvium@gmail.com> | 2021-05-31 13:55:54 +0200 |
| commit | 0835b26889e1b26d3bd00abfb076da3b6eb4424e (patch) | |
| tree | 41596817da86a0f32c078256578a380a36b4e757 /tests | |
| parent | 3b5214e59526095057a7761ca6c8edb5a5af1d1f (diff) | |
review
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/Jellyfin.Server.Implementations.Tests/Data/SqliteItemRepositoryTests.cs | 20 |
1 files changed, 0 insertions, 20 deletions
diff --git a/tests/Jellyfin.Server.Implementations.Tests/Data/SqliteItemRepositoryTests.cs b/tests/Jellyfin.Server.Implementations.Tests/Data/SqliteItemRepositoryTests.cs index f312933fb..ba67e55f3 100644 --- a/tests/Jellyfin.Server.Implementations.Tests/Data/SqliteItemRepositoryTests.cs +++ b/tests/Jellyfin.Server.Implementations.Tests/Data/SqliteItemRepositoryTests.cs @@ -164,10 +164,7 @@ namespace Jellyfin.Server.Implementations.Tests.Data } } }; - } - public static IEnumerable<object[]> DeserializeImages_ValidAndInvalid_TestData() - { yield return new object[] { string.Empty, @@ -216,23 +213,6 @@ namespace Jellyfin.Server.Implementations.Tests.Data } [Theory] - [MemberData(nameof(DeserializeImages_ValidAndInvalid_TestData))] - public void DeserializeImages_ValidAndInvalid_Success(string value, ItemImageInfo[] expected) - { - var result = _sqliteItemRepository.DeserializeImages(value); - Assert.Equal(expected.Length, result.Length); - for (int i = 0; i < expected.Length; i++) - { - Assert.Equal(expected[i].Path, result[i].Path); - Assert.Equal(expected[i].Type, result[i].Type); - Assert.Equal(expected[i].DateModified, result[i].DateModified); - Assert.Equal(expected[i].Width, result[i].Width); - Assert.Equal(expected[i].Height, result[i].Height); - Assert.Equal(expected[i].BlurHash, result[i].BlurHash); - } - } - - [Theory] [MemberData(nameof(DeserializeImages_Valid_TestData))] public void SerializeImages_Valid_Success(string expected, ItemImageInfo[] value) { |
