mirror of
https://github.com/jellyfin/jellyfin.git
synced 2024-11-15 09:59:06 -07:00
Merge pull request #5984 from Bond-009/container
Add regression test for ContainerProfile.ContainsContainer
This commit is contained in:
commit
b6df851363
@ -1,7 +1,6 @@
|
||||
#pragma warning disable CS1591
|
||||
|
||||
using System;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using System.Linq;
|
||||
using System.Xml.Serialization;
|
||||
|
||||
|
19
tests/Jellyfin.Model.Tests/Dlna/ContainerProfileTests.cs
Normal file
19
tests/Jellyfin.Model.Tests/Dlna/ContainerProfileTests.cs
Normal file
@ -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));
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user