From 51d2a078c94dd15adfae02a7c5a166fc3f4cd560 Mon Sep 17 00:00:00 2001 From: Malte Rosenbjerg Date: Sun, 16 Feb 2020 20:59:59 +0100 Subject: [PATCH] Fix unit test Former-commit-id: 5c15d90641b6236fc0558a8d729d6d015e5c2c07 --- FFMpegCore.Test/VideoTest.cs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/FFMpegCore.Test/VideoTest.cs b/FFMpegCore.Test/VideoTest.cs index 88510e6..281fe7d 100644 --- a/FFMpegCore.Test/VideoTest.cs +++ b/FFMpegCore.Test/VideoTest.cs @@ -314,10 +314,10 @@ public void Video_Join_Image_Sequence() public void Video_With_Only_Audio_Should_Extract_Metadata() { var video = VideoInfo.FromFileInfo(VideoLibrary.LocalVideoAudioOnly); - Assert.AreEqual(video.VideoFormat, "none"); - Assert.AreEqual(video.AudioFormat, "aac"); - Assert.AreEqual(video.Duration.TotalSeconds, 79); - Assert.AreEqual(video.Size, 1.25); + Assert.AreEqual("none", video.VideoFormat); + Assert.AreEqual("aac", video.AudioFormat); + Assert.AreEqual(79, (int)video.Duration.TotalSeconds); + Assert.AreEqual(1.25, video.Size); } [TestMethod]