1
0
mirror of https://github.com/ppy/osu.git synced 2024-09-22 04:07:25 +08:00

Fix incorrect assert in multiplayer song select test scene

This commit is contained in:
Bartłomiej Dach 2022-05-07 13:10:03 +02:00
parent 9a56f6db44
commit 5d6d7bb324
No known key found for this signature in database
GPG Key ID: BCECCD4FA41F6497

View File

@ -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