Fix map pool test scene using invalid mod acronyms

This commit is contained in:
Salman Ahmed 2023-06-14 09:58:39 +03:00
parent 82b7e570cd
commit 6543c720ef
1 changed files with 3 additions and 3 deletions

View File

@ -92,7 +92,7 @@ public void TestJustEnoughMods()
Ladder.CurrentMatch.Value.Round.Value.Beatmaps.Clear(); Ladder.CurrentMatch.Value.Round.Value.Beatmaps.Clear();
for (int i = 0; i < 11; i++) for (int i = 0; i < 11; i++)
addBeatmap(i > 4 ? $"M{i}" : "NM"); addBeatmap(i > 4 ? Ruleset.Value.CreateInstance().AllMods.ElementAt(i).Acronym : "NM");
}); });
AddStep("reset match", () => AddStep("reset match", () =>
@ -118,7 +118,7 @@ public void TestManyMods()
Ladder.CurrentMatch.Value.Round.Value.Beatmaps.Clear(); Ladder.CurrentMatch.Value.Round.Value.Beatmaps.Clear();
for (int i = 0; i < 12; i++) for (int i = 0; i < 12; i++)
addBeatmap(i > 4 ? $"M{i}" : "NM"); addBeatmap(i > 4 ? Ruleset.Value.CreateInstance().AllMods.ElementAt(i).Acronym : "NM");
}); });
AddStep("reset match", () => AddStep("reset match", () =>
@ -130,7 +130,7 @@ public void TestManyMods()
assertThreeWide(); assertThreeWide();
} }
private void addBeatmap(string mods = "nm") private void addBeatmap(string mods = "NM")
{ {
Ladder.CurrentMatch.Value.Round.Value.Beatmaps.Add(new RoundBeatmap Ladder.CurrentMatch.Value.Round.Value.Beatmaps.Add(new RoundBeatmap
{ {