Fix failing tests

This commit is contained in:
smoogipoo 2020-05-19 13:16:46 +09:00
parent 3ee698cfa0
commit 6d3ca4ec43
1 changed files with 4 additions and 0 deletions

View File

@ -69,6 +69,7 @@ public void TestCorrectSettingsApplied()
{
settings.NameField.Current.Value = expected_name;
settings.DurationField.Current.Value = expectedDuration;
Room.Playlist.Add(new PlaylistItem { Beatmap = { Value = CreateBeatmap(Ruleset.Value).BeatmapInfo } });
roomManager.CreateRequested = r =>
{
@ -89,6 +90,9 @@ public void TestCreationFailureDisplaysError()
AddStep("setup", () =>
{
Room.Name.Value = "Test Room";
Room.Playlist.Add(new PlaylistItem { Beatmap = { Value = CreateBeatmap(Ruleset.Value).BeatmapInfo } });
fail = true;
roomManager.CreateRequested = _ => !fail;
});