mirror of
https://github.com/osukey/osukey.git
synced 2025-07-03 01:09:57 +09:00
Add multiplayer lounge test coverage
This commit is contained in:
@ -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)
|
||||
|
Reference in New Issue
Block a user