mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-04-21 17:44:43 +01:00
Merge pull request #5984 from Bond-009/container
Add regression test for ContainerProfile.ContainsContainer
This commit is contained in:
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));
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user