From 59dc8e6b94173107c07339962fd213518ab202d4 Mon Sep 17 00:00:00 2001 From: Malte Rosenbjerg Date: Mon, 15 Mar 2021 23:50:11 +0100 Subject: [PATCH] Fix test Former-commit-id: cce6c6983c812feed041026e610373ca1d5e08ff --- FFMpegCore.Test/FFProbeTests.cs | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/FFMpegCore.Test/FFProbeTests.cs b/FFMpegCore.Test/FFProbeTests.cs index cba5c52..5cabc4e 100644 --- a/FFMpegCore.Test/FFProbeTests.cs +++ b/FFMpegCore.Test/FFProbeTests.cs @@ -28,7 +28,7 @@ public async Task Audio_FromStream_Duration() [DataTestMethod] [DataRow("0:00:03.008000", 0, 0, 0, 3, 8)] [DataRow("05:12:59.177", 0, 5, 12, 59, 177)] - [DataRow("149:07:50.911750", 6, 5, 7, 50, 911750)] + [DataRow("149:07:50.911750", 6, 5, 7, 50, 911)] [DataRow("00:00:00.83", 0, 0, 0, 0, 830)] public void MediaAnalysis_ParseDuration(string duration, int expectedDays, int expectedHours, int expectedMinutes, int expectedSeconds, int expectedMilliseconds) { @@ -36,11 +36,11 @@ public void MediaAnalysis_ParseDuration(string duration, int expectedDays, int e var parsedDuration = MediaAnalysisUtils.ParseDuration(ffprobeStream); - Assert.AreEqual(parsedDuration.Days, expectedDays); - Assert.AreEqual(parsedDuration.Hours, expectedHours); - Assert.AreEqual(parsedDuration.Minutes, expectedMinutes); - Assert.AreEqual(parsedDuration.Seconds, expectedSeconds); - Assert.AreEqual(parsedDuration.Milliseconds, expectedMilliseconds); + Assert.AreEqual(expectedDays, parsedDuration.Days); + Assert.AreEqual(expectedHours, parsedDuration.Hours); + Assert.AreEqual(expectedMinutes, parsedDuration.Minutes); + Assert.AreEqual(expectedSeconds, parsedDuration.Seconds); + Assert.AreEqual(expectedMilliseconds, parsedDuration.Milliseconds); } [TestMethod]