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

View File

@ -9,8 +9,12 @@ using osu.Framework.Testing;
using osu.Framework.Utils; using osu.Framework.Utils;
using osu.Game.Graphics.UserInterface; using osu.Game.Graphics.UserInterface;
using osu.Game.Overlays.Mods; using osu.Game.Overlays.Mods;
using osu.Game.Rulesets.Catch;
using osu.Game.Rulesets.Mania;
using osu.Game.Rulesets.Mods; using osu.Game.Rulesets.Mods;
using osu.Game.Rulesets.Osu;
using osu.Game.Rulesets.Osu.Mods; using osu.Game.Rulesets.Osu.Mods;
using osu.Game.Rulesets.Taiko;
using osuTK.Input; using osuTK.Input;
namespace osu.Game.Tests.Visual.UserInterface namespace osu.Game.Tests.Visual.UserInterface
@ -68,6 +72,16 @@ namespace osu.Game.Tests.Visual.UserInterface
assertCustomisationToggleState(disabled: false, active: false); 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] [Test]
public void TestCustomisationToggleState() public void TestCustomisationToggleState()
{ {