Update tests which were not using an `IAdjustableClock` as `GameplayClockContainer` source

This commit is contained in:
Dean Herbert 2023-09-22 14:32:31 +09:00
parent 8367bb6bee
commit a3e4d19933
1 changed files with 3 additions and 2 deletions

View File

@ -3,6 +3,7 @@
using NUnit.Framework;
using osu.Framework.Audio;
using osu.Framework.Audio.Track;
using osu.Framework.Bindables;
using osu.Framework.Timing;
using osu.Game.Screens.Play;
@ -16,7 +17,7 @@ public partial class GameplayClockContainerTest
[TestCase(1)]
public void TestTrueGameplayRateWithGameplayAdjustment(double underlyingClockRate)
{
var framedClock = new FramedClock(new ManualClock { Rate = underlyingClockRate });
var framedClock = new TrackVirtual(60000) { Frequency = { Value = underlyingClockRate } };
var gameplayClock = new TestGameplayClockContainer(framedClock);
Assert.That(gameplayClock.GetTrueGameplayRate(), Is.EqualTo(2));
@ -24,7 +25,7 @@ public void TestTrueGameplayRateWithGameplayAdjustment(double underlyingClockRat
private partial class TestGameplayClockContainer : GameplayClockContainer
{
public TestGameplayClockContainer(IFrameBasedClock underlyingClock)
public TestGameplayClockContainer(IClock underlyingClock)
: base(underlyingClock, false, false)
{
AdjustmentsFromMods.AddAdjustment(AdjustableProperty.Frequency, new BindableDouble(2.0));