diff options
| author | Bond_009 <bond.009@outlook.com> | 2021-05-05 13:33:34 +0200 |
|---|---|---|
| committer | Bond_009 <bond.009@outlook.com> | 2021-05-05 13:33:34 +0200 |
| commit | 39931fe3ade3ad10e758b3dbb5acf80c37bc05fa (patch) | |
| tree | 7f290f95f8c911b230362610950eb4f2b3739de6 /tests | |
| parent | 48e81e65e8948fa61980744932eb4103a28ed876 (diff) | |
Add regression test for ContainerProfile.ContainsContainer
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/Jellyfin.Model.Tests/Dlna/ContainerProfileTests.cs | 19 |
1 files changed, 19 insertions, 0 deletions
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)); + } + } +} |
