mirror of
https://github.com/ppy/osu.git
synced 2024-12-15 01:52:55 +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]
|
[SetUp]
|
||||||
public void SetUp() => Schedule(() => createDisplay(() => new TestModSelectOverlay()));
|
public void SetUp() => Schedule(() =>
|
||||||
|
{
|
||||||
|
SelectedMods.Value = Array.Empty<Mod>();
|
||||||
|
createDisplay(() => new TestModSelectOverlay());
|
||||||
|
});
|
||||||
|
|
||||||
[SetUpSteps]
|
[SetUpSteps]
|
||||||
public void SetUpSteps()
|
public void SetUpSteps()
|
||||||
@ -370,7 +374,6 @@ namespace osu.Game.Tests.Visual.UserInterface
|
|||||||
|
|
||||||
private void createDisplay(Func<TestModSelectOverlay> createOverlayFunc)
|
private void createDisplay(Func<TestModSelectOverlay> createOverlayFunc)
|
||||||
{
|
{
|
||||||
SelectedMods.Value = Array.Empty<Mod>();
|
|
||||||
Children = new Drawable[]
|
Children = new Drawable[]
|
||||||
{
|
{
|
||||||
modSelect = createOverlayFunc().With(d =>
|
modSelect = createOverlayFunc().With(d =>
|
||||||
|
Loading…
Reference in New Issue
Block a user