mirror of https://github.com/Radarr/Radarr
29 lines
933 B
C#
29 lines
933 B
C#
using FluentAssertions;
|
|
using NUnit.Framework;
|
|
using NzbDrone.Core.MediaFiles.MediaInfo;
|
|
using NzbDrone.Test.Common;
|
|
|
|
namespace NzbDrone.Core.Test.MediaFiles.MediaInfo.MediaInfoFormatterTests
|
|
{
|
|
[TestFixture]
|
|
public class FormatVideoDynamicRangeFixture : TestBase
|
|
{
|
|
[TestCase(HdrFormat.None, "")]
|
|
[TestCase(HdrFormat.Hlg10, "HDR")]
|
|
[TestCase(HdrFormat.Pq10, "HDR")]
|
|
[TestCase(HdrFormat.Hdr10, "HDR")]
|
|
[TestCase(HdrFormat.Hdr10Plus, "HDR")]
|
|
[TestCase(HdrFormat.DolbyVision, "HDR")]
|
|
public void should_format_video_dynamic_range(HdrFormat format, string expectedVideoDynamicRange)
|
|
{
|
|
var mediaInfo = new MediaInfoModel
|
|
{
|
|
VideoHdrFormat = format,
|
|
SchemaRevision = 8
|
|
};
|
|
|
|
MediaInfoFormatter.FormatVideoDynamicRange(mediaInfo).Should().Be(expectedVideoDynamicRange);
|
|
}
|
|
}
|
|
}
|