From 4c18a67268d6aae90ed25c35d2f44fb7e5318cbe Mon Sep 17 00:00:00 2001 From: mcendu Date: Wed, 15 Jan 2020 18:24:43 +0800 Subject: [PATCH] add test step --- osu.Game.Tests/Visual/UserInterface/TestSceneModButton.cs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/osu.Game.Tests/Visual/UserInterface/TestSceneModButton.cs b/osu.Game.Tests/Visual/UserInterface/TestSceneModButton.cs index b1dccdaeea..7560ad2ce0 100644 --- a/osu.Game.Tests/Visual/UserInterface/TestSceneModButton.cs +++ b/osu.Game.Tests/Visual/UserInterface/TestSceneModButton.cs @@ -1,7 +1,6 @@ // Copyright (c) ppy Pty Ltd . Licensed under the MIT Licence. // See the LICENCE file in the repository root for full licence text. -using NUnit.Framework; using osu.Framework.Graphics; using osu.Framework.Graphics.Sprites; using osu.Game.Overlays.Mods; @@ -13,8 +12,7 @@ namespace osu.Game.Tests.Visual.UserInterface { private ModButton modButton; - [SetUp] - public void SetUp() => Schedule(() => + public TestSceneModButton() { Children = new Drawable[] { @@ -24,7 +22,9 @@ namespace osu.Game.Tests.Visual.UserInterface Origin = Anchor.Centre } }; - }); + + AddStep("left click", () => modButton.SelectNext(1)); + } private class TestMod1 : TestMod {