The Free Software Media System - Server Backend & API
Add regression test for ContainerProfile.ContainsContainer
Bond_00939931fe3ade3
diff --git a/MediaBrowser.Model/Dlna/ContainerProfile.cs b/MediaBrowser.Model/Dlna/ContainerProfile.csindex c66ec8bc37..530ffed438 100644--- a/MediaBrowser.Model/Dlna/ContainerProfile.cs+++ b/MediaBrowser.Model/Dlna/ContainerProfile.cs@@ -1,7 +1,6 @@#pragma warning disable CS1591using 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.csnew file mode 100644index 0000000000..cca056c280--- /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));+ }+ }+}