mirror of
https://github.com/ppy/osu.git
synced 2024-11-11 15:47:26 +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)
|
||||
{
|
||||
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
|
||||
|
Loading…
Reference in New Issue
Block a user