Fix unit test

This commit is contained in:
Malte Rosenbjerg 2020-02-16 20:59:59 +01:00
parent bdd826f650
commit 5c15d90641

View file

@ -314,10 +314,10 @@ public void Video_Join_Image_Sequence()
public void Video_With_Only_Audio_Should_Extract_Metadata() public void Video_With_Only_Audio_Should_Extract_Metadata()
{ {
var video = VideoInfo.FromFileInfo(VideoLibrary.LocalVideoAudioOnly); var video = VideoInfo.FromFileInfo(VideoLibrary.LocalVideoAudioOnly);
Assert.AreEqual(video.VideoFormat, "none"); Assert.AreEqual("none", video.VideoFormat);
Assert.AreEqual(video.AudioFormat, "aac"); Assert.AreEqual("aac", video.AudioFormat);
Assert.AreEqual(video.Duration.TotalSeconds, 79); Assert.AreEqual(79, (int)video.Duration.TotalSeconds);
Assert.AreEqual(video.Size, 1.25); Assert.AreEqual(1.25, video.Size);
} }
[TestMethod] [TestMethod]