mirror of
https://github.com/ppy/osu.git
synced 2025-01-15 09:22:54 +08:00
Fix incorrect assert in multiplayer song select test scene
This commit is contained in:
parent
9a56f6db44
commit
5d6d7bb324
@ -132,7 +132,11 @@ namespace osu.Game.Tests.Visual.Multiplayer
|
|||||||
private void assertHasFreeModButton(Type type, bool hasButton = true)
|
private void assertHasFreeModButton(Type type, bool hasButton = true)
|
||||||
{
|
{
|
||||||
AddAssert($"{type.ReadableName()} {(hasButton ? "displayed" : "not displayed")} in freemod overlay",
|
AddAssert($"{type.ReadableName()} {(hasButton ? "displayed" : "not displayed")} in freemod overlay",
|
||||||
() => this.ChildrenOfType<FreeModSelectScreen>().Single().ChildrenOfType<ModPanel>().All(b => b.Mod.GetType() != type));
|
() => this.ChildrenOfType<FreeModSelectScreen>()
|
||||||
|
.Single()
|
||||||
|
.ChildrenOfType<ModPanel>()
|
||||||
|
.Where(panel => !panel.Filtered.Value)
|
||||||
|
.All(b => b.Mod.GetType() != type));
|
||||||
}
|
}
|
||||||
|
|
||||||
private class TestMultiplayerMatchSongSelect : MultiplayerMatchSongSelect
|
private class TestMultiplayerMatchSongSelect : MultiplayerMatchSongSelect
|
||||||
|
Loading…
Reference in New Issue
Block a user