// Copyright (c) ppy Pty Ltd . Licensed under the MIT Licence. // See the LICENCE file in the repository root for full licence text. using NUnit.Framework; using osu.Game.Rulesets; using osu.Game.Rulesets.Mods; using osu.Game.Rulesets.Osu; namespace osu.Game.Tests.Visual.Gameplay { public class TestSceneUnknownMod : ModTestScene { protected override Ruleset CreatePlayerRuleset() => new OsuRuleset(); [Test] public void TestUnknownModDoesntEnterGameplay() { CreateModTest(new ModTestData { Beatmap = CreateWorkingBeatmap(new OsuRuleset().RulesetInfo).Beatmap, Mod = new UnknownMod("WNG"), PassCondition = () => Player.IsLoaded && !Player.LoadedBeatmapSuccessfully }); } } }