1
0
mirror of https://github.com/ppy/osu.git synced 2024-12-14 10:12:54 +08:00
This commit is contained in:
smoogipoo 2021-07-19 20:08:29 +09:00
parent a5a0f12e19
commit 1b9d297911

View File

@ -85,6 +85,26 @@ namespace osu.Game.Tests.Visual.Multiplayer
// used to test the flow of multiplayer from visual tests.
}
[Test]
public void TestCreateRoomWithPassword()
{
createRoom(() => new Room
{
Name = { Value = "Test Room" },
Password = { Value = "password" },
Playlist =
{
new PlaylistItem
{
Beatmap = { Value = beatmaps.GetWorkingBeatmap(importedSet.Beatmaps.First(b => b.RulesetID == 0)).BeatmapInfo },
Ruleset = { Value = new OsuRuleset().RulesetInfo },
}
}
});
AddAssert("room has password", () => client.APIRoom?.Password.Value == "password");
}
[Test]
public void TestUserSetToIdleWhenBeatmapDeleted()
{