1
0
mirror of https://github.com/ppy/osu.git synced 2024-12-13 03:42:57 +08:00

Move toggle step to SetUpSteps

This commit is contained in:
Salman Ahmed 2024-05-25 17:28:03 +03:00
parent 2c18c10ac8
commit 91fb5ed749

View File

@ -7,6 +7,7 @@ using NUnit.Framework;
using osu.Framework.Allocation;
using osu.Framework.Graphics;
using osu.Framework.Graphics.Containers;
using osu.Framework.Testing;
using osu.Framework.Utils;
using osu.Game.Configuration;
using osu.Game.Graphics.Sprites;
@ -47,7 +48,6 @@ namespace osu.Game.Tests.Visual.SongSelect
relativeWidth = v;
if (fillFlow != null) fillFlow.Width = v;
});
AddToggleStep("toggle scoring mode", v => config.SetValue(OsuSetting.ScoreDisplayMode, v ? ScoringMode.Classic : ScoringMode.Standardised));
}
[SetUp]
@ -81,6 +81,12 @@ namespace osu.Game.Tests.Visual.SongSelect
score.Show();
});
[SetUpSteps]
public void SetUpSteps()
{
AddToggleStep("toggle scoring mode", v => config.SetValue(OsuSetting.ScoreDisplayMode, v ? ScoringMode.Classic : ScoringMode.Standardised));
}
protected override void UpdateAfterChildren()
{
base.UpdateAfterChildren();