1
0
mirror of https://github.com/ppy/osu.git synced 2025-01-13 16:32:54 +08:00

Add testing for different rulesets

This commit is contained in:
Bartłomiej Dach 2022-04-03 18:38:23 +02:00
parent cd776d21a6
commit a172b194f0
No known key found for this signature in database
GPG Key ID: BCECCD4FA41F6497

View File

@ -9,8 +9,12 @@ using osu.Framework.Testing;
using osu.Framework.Utils;
using osu.Game.Graphics.UserInterface;
using osu.Game.Overlays.Mods;
using osu.Game.Rulesets.Catch;
using osu.Game.Rulesets.Mania;
using osu.Game.Rulesets.Mods;
using osu.Game.Rulesets.Osu;
using osu.Game.Rulesets.Osu.Mods;
using osu.Game.Rulesets.Taiko;
using osuTK.Input;
namespace osu.Game.Tests.Visual.UserInterface
@ -68,6 +72,16 @@ namespace osu.Game.Tests.Visual.UserInterface
assertCustomisationToggleState(disabled: false, active: false);
}
[Test]
public void TestRulesetChange()
{
createScreen();
AddStep("change to osu!", () => Ruleset.Value = new OsuRuleset().RulesetInfo);
AddStep("change to osu!taiko", () => Ruleset.Value = new TaikoRuleset().RulesetInfo);
AddStep("change to osu!catch", () => Ruleset.Value = new CatchRuleset().RulesetInfo);
AddStep("change to osu!mania", () => Ruleset.Value = new ManiaRuleset().RulesetInfo);
}
[Test]
public void TestCustomisationToggleState()
{