mirror of
https://github.com/ppy/osu.git
synced 2024-12-14 23:12:56 +08:00
Move the point at which selected mods are reset in tests to allow mutliple creation test flow
This commit is contained in:
parent
435c85a2e7
commit
98a83722ff
@ -39,7 +39,11 @@ namespace osu.Game.Tests.Visual.UserInterface
|
||||
}
|
||||
|
||||
[SetUp]
|
||||
public void SetUp() => Schedule(() => createDisplay(() => new TestModSelectOverlay()));
|
||||
public void SetUp() => Schedule(() =>
|
||||
{
|
||||
SelectedMods.Value = Array.Empty<Mod>();
|
||||
createDisplay(() => new TestModSelectOverlay());
|
||||
});
|
||||
|
||||
[SetUpSteps]
|
||||
public void SetUpSteps()
|
||||
@ -370,7 +374,6 @@ namespace osu.Game.Tests.Visual.UserInterface
|
||||
|
||||
private void createDisplay(Func<TestModSelectOverlay> createOverlayFunc)
|
||||
{
|
||||
SelectedMods.Value = Array.Empty<Mod>();
|
||||
Children = new Drawable[]
|
||||
{
|
||||
modSelect = createOverlayFunc().With(d =>
|
||||
|
Loading…
Reference in New Issue
Block a user