mirror of
https://github.com/lidarr/Lidarr
synced 2024-12-28 02:27:13 +00:00
Fixed: Unit tests after MediaInfo change
This commit is contained in:
parent
64d58a2248
commit
b34c1e5332
1 changed files with 19 additions and 8 deletions
|
@ -42,18 +42,23 @@ public void get_info()
|
||||||
|
|
||||||
var info = Subject.GetMediaInfo(path);
|
var info = Subject.GetMediaInfo(path);
|
||||||
|
|
||||||
|
info.VideoCodec.Should().BeNull();
|
||||||
|
info.VideoFormat.Should().Be("AVC");
|
||||||
|
info.VideoCodecID.Should().Be("avc1");
|
||||||
|
info.VideoProfile.Should().Be("Baseline@L2.1");
|
||||||
|
info.VideoCodecLibrary.Should().Be("");
|
||||||
|
info.AudioFormat.Should().Be("AAC");
|
||||||
|
info.AudioCodecID.Should().Be("40");
|
||||||
|
info.AudioProfile.Should().Be("LC");
|
||||||
|
info.AudioCodecLibrary.Should().Be("");
|
||||||
info.AudioBitrate.Should().Be(128000);
|
info.AudioBitrate.Should().Be(128000);
|
||||||
info.AudioChannels.Should().Be(2);
|
info.AudioChannels.Should().Be(2);
|
||||||
info.AudioFormat.Should().Be("AAC");
|
|
||||||
info.AudioLanguages.Should().Be("English");
|
info.AudioLanguages.Should().Be("English");
|
||||||
info.AudioProfile.Should().Be("LC");
|
|
||||||
info.Height.Should().Be(320);
|
info.Height.Should().Be(320);
|
||||||
info.RunTime.Seconds.Should().Be(10);
|
info.RunTime.Seconds.Should().Be(10);
|
||||||
info.ScanType.Should().Be("Progressive");
|
info.ScanType.Should().Be("Progressive");
|
||||||
info.Subtitles.Should().Be("");
|
info.Subtitles.Should().Be("");
|
||||||
info.VideoBitrate.Should().Be(193329);
|
info.VideoBitrate.Should().Be(193329);
|
||||||
info.VideoCodec.Should().Be("AVC");
|
|
||||||
info.VideoFps.Should().Be(24);
|
info.VideoFps.Should().Be(24);
|
||||||
info.Width.Should().Be(480);
|
info.Width.Should().Be(480);
|
||||||
|
|
||||||
|
@ -73,17 +78,23 @@ public void get_info_unicode()
|
||||||
|
|
||||||
var info = Subject.GetMediaInfo(path);
|
var info = Subject.GetMediaInfo(path);
|
||||||
|
|
||||||
|
info.VideoCodec.Should().BeNull();
|
||||||
|
info.VideoFormat.Should().Be("AVC");
|
||||||
|
info.VideoCodecID.Should().Be("avc1");
|
||||||
|
info.VideoProfile.Should().Be("Baseline@L2.1");
|
||||||
|
info.VideoCodecLibrary.Should().Be("");
|
||||||
|
info.AudioFormat.Should().Be("AAC");
|
||||||
|
info.AudioCodecID.Should().Be("40");
|
||||||
|
info.AudioProfile.Should().Be("LC");
|
||||||
|
info.AudioCodecLibrary.Should().Be("");
|
||||||
info.AudioBitrate.Should().Be(128000);
|
info.AudioBitrate.Should().Be(128000);
|
||||||
info.AudioChannels.Should().Be(2);
|
info.AudioChannels.Should().Be(2);
|
||||||
info.AudioFormat.Should().Be("AAC");
|
|
||||||
info.AudioLanguages.Should().Be("English");
|
info.AudioLanguages.Should().Be("English");
|
||||||
info.AudioProfile.Should().Be("LC");
|
|
||||||
info.Height.Should().Be(320);
|
info.Height.Should().Be(320);
|
||||||
info.RunTime.Seconds.Should().Be(10);
|
info.RunTime.Seconds.Should().Be(10);
|
||||||
info.ScanType.Should().Be("Progressive");
|
info.ScanType.Should().Be("Progressive");
|
||||||
info.Subtitles.Should().Be("");
|
info.Subtitles.Should().Be("");
|
||||||
info.VideoBitrate.Should().Be(193329);
|
info.VideoBitrate.Should().Be(193329);
|
||||||
info.VideoCodec.Should().Be("AVC");
|
|
||||||
info.VideoFps.Should().Be(24);
|
info.VideoFps.Should().Be(24);
|
||||||
info.Width.Should().Be(480);
|
info.Width.Should().Be(480);
|
||||||
|
|
||||||
|
@ -101,4 +112,4 @@ public void should_dispose_file_after_scanning_mediainfo()
|
||||||
stream.Close();
|
stream.Close();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue