Refactor exposed mod retrieval methods for better safety

This commit is contained in:
Dean Herbert
2021-09-10 11:09:13 +09:00
parent ce6b022a90
commit cf633973a9
19 changed files with 75 additions and 64 deletions

View File

@ -158,8 +158,8 @@ namespace osu.Game.Tests.Visual.UserInterface
var mania = new ManiaRuleset();
testModsWithSameBaseType(
mania.GetAllMods().Single(m => m.GetType() == typeof(ManiaModFadeIn)),
mania.GetAllMods().Single(m => m.GetType() == typeof(ManiaModHidden)));
mania.CreateAllMods().Single(m => m.GetType() == typeof(ManiaModFadeIn)),
mania.CreateAllMods().Single(m => m.GetType() == typeof(ManiaModHidden)));
}
[Test]