1
0
mirror of https://github.com/ppy/osu.git synced 2025-01-12 17:43:05 +08:00

Add base ready-made abstract scene for osu! mod tests

This commit is contained in:
Salman Ahmed 2020-06-03 23:23:56 +03:00
parent 84b40ea2c6
commit 611f64fd36
No known key found for this signature in database
GPG Key ID: ED81FD33FD9B58BC
4 changed files with 15 additions and 12 deletions

View File

@ -0,0 +1,12 @@
// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
// See the LICENCE file in the repository root for full licence text.
using osu.Game.Tests.Visual;
namespace osu.Game.Rulesets.Osu.Tests.Mods
{
public class OsuModTestScene : ModTestScene
{
protected override Ruleset CreatePlayerRuleset() => new OsuRuleset();
}
}

View File

@ -9,14 +9,11 @@ using osu.Framework.Utils;
using osu.Game.Graphics.Containers;
using osu.Game.Rulesets.Osu.Mods;
using osu.Game.Rulesets.Osu.Objects.Drawables;
using osu.Game.Tests.Visual;
namespace osu.Game.Rulesets.Osu.Tests.Mods
{
public class TestSceneOsuModDifficultyAdjust : ModTestScene
public class TestSceneOsuModDifficultyAdjust : OsuModTestScene
{
protected override Ruleset CreatePlayerRuleset() => new OsuRuleset();
[Test]
public void TestNoAdjustment() => CreateModTest(new ModTestData
{

View File

@ -4,14 +4,11 @@
using NUnit.Framework;
using osu.Framework.Utils;
using osu.Game.Rulesets.Osu.Mods;
using osu.Game.Tests.Visual;
namespace osu.Game.Rulesets.Osu.Tests.Mods
{
public class TestSceneOsuModDoubleTime : ModTestScene
public class TestSceneOsuModDoubleTime : OsuModTestScene
{
protected override Ruleset CreatePlayerRuleset() => new OsuRuleset();
[TestCase(0.5)]
[TestCase(1.01)]
[TestCase(1.5)]

View File

@ -8,15 +8,12 @@ using osu.Game.Rulesets.Objects;
using osu.Game.Rulesets.Objects.Types;
using osu.Game.Rulesets.Osu.Mods;
using osu.Game.Rulesets.Osu.Objects;
using osu.Game.Tests.Visual;
using osuTK;
namespace osu.Game.Rulesets.Osu.Tests.Mods
{
public class TestSceneOsuModHidden : ModTestScene
public class TestSceneOsuModHidden : OsuModTestScene
{
protected override Ruleset CreatePlayerRuleset() => new OsuRuleset();
[Test]
public void TestDefaultBeatmapTest() => CreateModTest(new ModTestData
{