diff options
| author | Bond-009 <bond.009@outlook.com> | 2021-05-05 13:51:34 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-05-05 13:51:34 +0200 |
| commit | b6df85136347df691ebc774b9d48dc622cb63a04 (patch) | |
| tree | 97150d98705773097f290cbed115b2ffd0bcf6df | |
| parent | 2e98de90628e9a4e42fb182f2d5a2a296acfd827 (diff) | |
| parent | 39931fe3ade3ad10e758b3dbb5acf80c37bc05fa (diff) | |
Merge pull request #5984 from Bond-009/container
Add regression test for ContainerProfile.ContainsContainer
| -rw-r--r-- | MediaBrowser.Model/Dlna/ContainerProfile.cs | 1 | ||||
| -rw-r--r-- | tests/Jellyfin.Model.Tests/Dlna/ContainerProfileTests.cs | 19 |
2 files changed, 19 insertions, 1 deletions
diff --git a/MediaBrowser.Model/Dlna/ContainerProfile.cs b/MediaBrowser.Model/Dlna/ContainerProfile.cs index b059e43f3..740966088 100644 --- a/MediaBrowser.Model/Dlna/ContainerProfile.cs +++ b/MediaBrowser.Model/Dlna/ContainerProfile.cs @@ -1,7 +1,6 @@ #pragma warning disable CS1591 using System; -using System.ComponentModel.DataAnnotations; using System.Linq; using System.Xml.Serialization; diff --git a/tests/Jellyfin.Model.Tests/Dlna/ContainerProfileTests.cs b/tests/Jellyfin.Model.Tests/Dlna/ContainerProfileTests.cs new file mode 100644 index 000000000..cca056c28 --- /dev/null +++ b/tests/Jellyfin.Model.Tests/Dlna/ContainerProfileTests.cs @@ -0,0 +1,19 @@ +using MediaBrowser.Model.Dlna; +using Xunit; + +namespace Jellyfin.Model.Tests.Dlna +{ + public class ContainerProfileTests + { + private readonly ContainerProfile _emptyContainerProfile = new ContainerProfile(); + + [Theory] + [InlineData(null)] + [InlineData("")] + [InlineData("mp4")] + public void ContainsContainer_EmptyContainerProfile_True(string? containers) + { + Assert.True(_emptyContainerProfile.ContainsContainer(containers)); + } + } +} |
