Add test for unimplemented mod

This commit is contained in:
Dean Herbert 2018-01-02 16:58:11 +09:00
parent f10a19ada1
commit 3a7098340a
1 changed files with 10 additions and 0 deletions

View File

@ -83,6 +83,8 @@ private void testOsuMods(OsuRuleset ruleset)
var doubleTimeMod = harderMods.OfType<MultiMod>().FirstOrDefault(m => m.Mods.Any(a => a is OsuModDoubleTime));
var autoPilotMod = assistMods.FirstOrDefault(m => m is OsuModAutopilot);
var easy = easierMods.FirstOrDefault(m => m is OsuModEasy);
var hardRock = harderMods.FirstOrDefault(m => m is OsuModHardRock);
@ -93,6 +95,8 @@ private void testOsuMods(OsuRuleset ruleset)
testMultiplierTextColour(noFailMod, modSelect.LowMultiplierColour);
testMultiplierTextColour(hiddenMod, modSelect.HighMultiplierColour);
testUnimplmentedMod(autoPilotMod);
// TODO: add back once we have an implemented unranked mod.
// testMultiplierTextUnranked(autoPilotMod);
}
@ -129,6 +133,12 @@ private void testMultiMod(MultiMod multiMod)
checkNotSelected(mod);
}
private void testUnimplmentedMod(Mod mod)
{
selectNext(mod);
checkNotSelected(mod);
}
private void testIncompatibleMods(Mod modA, Mod modB)
{
selectNext(modA);