1
0
mirror of https://github.com/ppy/osu.git synced 2025-01-28 00:53:21 +08:00

Update asserts in line with framework changes to PlaybackPosition

This commit is contained in:
Dean Herbert 2021-09-07 17:25:03 +09:00
parent a42527b8f5
commit 91a48084c7

View File

@ -40,10 +40,10 @@ namespace osu.Game.Tests.NonVisual.Skinning
assertPlaybackPosition(0); assertPlaybackPosition(0);
AddStep("set start time to 1000", () => animationTimeReference.AnimationStartTime.Value = 1000); AddStep("set start time to 1000", () => animationTimeReference.AnimationStartTime.Value = 1000);
assertPlaybackPosition(-1000); assertPlaybackPosition(0);
AddStep("set current time to 500", () => animationTimeReference.ManualClock.CurrentTime = 500); AddStep("set current time to 500", () => animationTimeReference.ManualClock.CurrentTime = 500);
assertPlaybackPosition(-500); assertPlaybackPosition(0);
} }
private void assertPlaybackPosition(double expectedPosition) private void assertPlaybackPosition(double expectedPosition)