Ensure score has custom ruleset

This commit is contained in:
Salman Ahmed 2022-07-08 19:02:46 +03:00
parent 8c7aabccb0
commit 667b1d795d
1 changed files with 3 additions and 0 deletions

View File

@ -6,6 +6,7 @@
using osu.Framework.Allocation;
using osu.Framework.Audio;
using osu.Framework.Extensions;
using osu.Framework.Extensions.ObjectExtensions;
using osu.Framework.Platform;
using osu.Framework.Screens;
using osu.Game.Beatmaps;
@ -83,6 +84,8 @@ public void TestScoreStoredLocallyCustomRuleset()
CreateTest();
AddAssert("score has custom ruleset", () => Player.Score.ScoreInfo.Ruleset.Equals(customRuleset.AsNonNull().RulesetInfo));
AddUntilStep("wait for track to start running", () => Beatmap.Value.Track.IsRunning);
AddStep("seek to completion", () => Player.GameplayClockContainer.Seek(Player.DrawableRuleset.Objects.Last().GetEndTime()));