mirror of
https://github.com/osukey/osukey.git
synced 2025-07-02 16:59:53 +09:00
Simplify input buttons/keys in tests
This commit is contained in:
@ -65,10 +65,8 @@ namespace osu.Game.Tests.Visual.Menus
|
||||
AddStep($"switch to ruleset {i} via shortcut", () =>
|
||||
{
|
||||
InputManager.PressKey(Key.ControlLeft);
|
||||
InputManager.PressKey(numberKey);
|
||||
|
||||
InputManager.Key(numberKey);
|
||||
InputManager.ReleaseKey(Key.ControlLeft);
|
||||
InputManager.ReleaseKey(numberKey);
|
||||
});
|
||||
|
||||
AddUntilStep("ruleset switched", () => rulesetSelector.Current.Value.Equals(expected));
|
||||
|
Reference in New Issue
Block a user