Fix failing test case

This commit is contained in:
Salman Ahmed 2022-02-11 04:44:54 +03:00
parent 6f0e32826c
commit c29cc78853

View File

@ -457,10 +457,12 @@ namespace osu.Game.Tests.Visual.UserInterface
public override ModType Type => ModType.Conversion; public override ModType Type => ModType.Conversion;
} }
private class TestUnimplementedModOsuRuleset : OsuRuleset private class TestUnimplementedModOsuRuleset : OsuRuleset, ILegacyRuleset
{ {
public override string ShortName => "unimplemented"; public override string ShortName => "unimplemented";
int ILegacyRuleset.LegacyID => -1;
public override IEnumerable<Mod> GetModsFor(ModType type) public override IEnumerable<Mod> GetModsFor(ModType type)
{ {
if (type == ModType.Conversion) return base.GetModsFor(type).Concat(new[] { new TestUnimplementedMod() }); if (type == ModType.Conversion) return base.GetModsFor(type).Concat(new[] { new TestUnimplementedMod() });