Seal the ruleset creation methods and let abstract method take their place

Also makes `CreatePlayerRuleset()` and `CreateRulesetForSkinProvider()` not-null to avoid unwanted behaviour with their derivers
This commit is contained in:
Salman Ahmed
2020-04-23 13:25:06 +03:00
parent 0a0ea39431
commit 2fa47992dc
18 changed files with 58 additions and 39 deletions

View File

@ -15,6 +15,8 @@ namespace osu.Game.Rulesets.Osu.Tests.Mods
{
public class TestSceneOsuModDifficultyAdjust : ModTestScene
{
protected override Ruleset CreatePlayerRuleset() => new OsuRuleset();
[Test]
public void TestNoAdjustment() => CreateModTest(new ModTestData
{
@ -77,7 +79,5 @@ namespace osu.Game.Rulesets.Osu.Tests.Mods
{
return Player.ScoreProcessor.JudgedHits >= 2;
}
protected override Ruleset CreateRuleset() => new OsuRuleset();
}
}