|
|
@ -8,10 +8,10 @@ namespace NzbDrone.Core.Test.MediaFiles.MediaInfo.MediaInfoFormatterTests
|
|
|
|
[TestFixture]
|
|
|
|
[TestFixture]
|
|
|
|
public class FormatVideoCodecFixture : TestBase
|
|
|
|
public class FormatVideoCodecFixture : TestBase
|
|
|
|
{
|
|
|
|
{
|
|
|
|
[TestCase("AVC", null, "h264")]
|
|
|
|
[TestCase("AVC", null, "x264")]
|
|
|
|
[TestCase("AVC", "source.title.x264.720p-Sonarr", "x264")]
|
|
|
|
[TestCase("AVC", "source.title.x264.720p-Sonarr", "x264")]
|
|
|
|
[TestCase("AVC", "source.title.h264.720p-Sonarr", "h264")]
|
|
|
|
[TestCase("AVC", "source.title.h264.720p-Sonarr", "h264")]
|
|
|
|
[TestCase("V_MPEGH/ISO/HEVC", null, "h265")]
|
|
|
|
[TestCase("V_MPEGH/ISO/HEVC", null, "x265")]
|
|
|
|
[TestCase("V_MPEGH/ISO/HEVC", "source.title.x265.720p-Sonarr", "x265")]
|
|
|
|
[TestCase("V_MPEGH/ISO/HEVC", "source.title.x265.720p-Sonarr", "x265")]
|
|
|
|
[TestCase("V_MPEGH/ISO/HEVC", "source.title.h265.720p-Sonarr", "h265")]
|
|
|
|
[TestCase("V_MPEGH/ISO/HEVC", "source.title.h265.720p-Sonarr", "h265")]
|
|
|
|
[TestCase("MPEG-2 Video", null, "MPEG2")]
|
|
|
|
[TestCase("MPEG-2 Video", null, "MPEG2")]
|
|
|
@ -19,7 +19,7 @@ namespace NzbDrone.Core.Test.MediaFiles.MediaInfo.MediaInfoFormatterTests
|
|
|
|
{
|
|
|
|
{
|
|
|
|
var mediaInfoModel = new MediaInfoModel
|
|
|
|
var mediaInfoModel = new MediaInfoModel
|
|
|
|
{
|
|
|
|
{
|
|
|
|
VideoFormat = videoCodec
|
|
|
|
VideoCodec = videoCodec
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
MediaInfoFormatter.FormatVideoCodec(mediaInfoModel, sceneName).Should().Be(expectedFormat);
|
|
|
|
MediaInfoFormatter.FormatVideoCodec(mediaInfoModel, sceneName).Should().Be(expectedFormat);
|
|
|
|