From f1e39b536f699281bbdcce507022251024c6e4d4 Mon Sep 17 00:00:00 2001 From: routersys Date: Sun, 13 Sep 2026 13:47:29 +0900 Subject: [PATCH] =?UTF-8?q?=E5=8C=BA=E9=96=93=E5=86=85=E3=81=AE=E6=A4=9C?= =?UTF-8?q?=E7=AE=97=E3=81=AE=E8=A9=A6=E9=A8=93=E3=82=92=E8=BF=91=E4=BC=BC?= =?UTF-8?q?=E3=81=A8=E5=8C=BA=E5=88=A5=E3=81=99=E3=82=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ProxyForge.Tests/FrameRateResolverTests.cs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/ProxyForge.Tests/FrameRateResolverTests.cs b/ProxyForge.Tests/FrameRateResolverTests.cs index abc94ee..cb42fe0 100644 --- a/ProxyForge.Tests/FrameRateResolverTests.cs +++ b/ProxyForge.Tests/FrameRateResolverTests.cs @@ -124,8 +124,8 @@ public sealed class FrameRateResolverTests [Fact] public void FallsBackToTheApproximationWhenTheFunctionDisagreesInsideTheClip() { - var function = HostFunction(30, 1); - var duration = TimeSpan.FromSeconds(10); + var function = HostFunction(30000, 1001); + var duration = DurationOf(300, 30000, 1001) + TimeSpan.FromMilliseconds(300); var frameCount = function(duration); var disagreement = new TimeSpan(duration.Ticks / 7 * 3); @@ -135,6 +135,7 @@ public sealed class FrameRateResolverTests duration); Assert.Equal(FrameRate.Approximate(frameCount, duration), rate); + Assert.NotEqual(new FrameRate(30000, 1001), rate); } [Fact]