Add multiplayer lounge test coverage

This commit is contained in:
Dean Herbert
2021-07-09 16:01:52 +09:00
parent 5148069efe
commit 84b0a3290c
2 changed files with 47 additions and 2 deletions

View File

@ -43,7 +43,7 @@ namespace osu.Game.Tests.Visual.OnlinePlay
{
}
public void AddRooms(int count, RulesetInfo ruleset = null)
public void AddRooms(int count, RulesetInfo ruleset = null, bool withPassword = false)
{
for (int i = 0; i < count; i++)
{
@ -53,7 +53,8 @@ namespace osu.Game.Tests.Visual.OnlinePlay
Name = { Value = $"Room {i}" },
Host = { Value = new User { Username = "Host" } },
EndDate = { Value = DateTimeOffset.Now + TimeSpan.FromSeconds(10) },
Category = { Value = i % 2 == 0 ? RoomCategory.Spotlight : RoomCategory.Normal }
Category = { Value = i % 2 == 0 ? RoomCategory.Spotlight : RoomCategory.Normal },
Password = { Value = withPassword ? "password" : string.Empty }
};
if (ruleset != null)