2020-03-02 03:42:48 +00:00
|
|
|
// 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 NUnit.Framework;
|
|
|
|
using osu.Game.Rulesets.Mania.Mods;
|
|
|
|
using osu.Game.Rulesets.Mania.Objects;
|
|
|
|
using osu.Game.Tests.Visual;
|
|
|
|
|
2020-03-03 06:30:53 +00:00
|
|
|
namespace osu.Game.Rulesets.Mania.Tests.Mods
|
2020-03-02 03:42:48 +00:00
|
|
|
{
|
|
|
|
public class TestSceneManiaModPerfect : ModPerfectTestScene
|
|
|
|
{
|
2020-04-23 10:25:06 +00:00
|
|
|
protected override Ruleset CreatePlayerRuleset() => new ManiaRuleset();
|
|
|
|
|
2020-03-02 03:42:48 +00:00
|
|
|
public TestSceneManiaModPerfect()
|
2020-04-17 07:56:01 +00:00
|
|
|
: base(new ManiaModPerfect())
|
2020-03-02 03:42:48 +00:00
|
|
|
{
|
|
|
|
}
|
|
|
|
|
|
|
|
[TestCase(false)]
|
|
|
|
[TestCase(true)]
|
2020-03-10 15:36:56 +00:00
|
|
|
public void TestNote(bool shouldMiss) => CreateHitObjectTest(new HitObjectTestData(new Note { StartTime = 1000 }), shouldMiss);
|
2020-03-02 03:42:48 +00:00
|
|
|
|
|
|
|
[TestCase(false)]
|
|
|
|
[TestCase(true)]
|
2020-03-10 15:36:56 +00:00
|
|
|
public void TestHoldNote(bool shouldMiss) => CreateHitObjectTest(new HitObjectTestData(new HoldNote { StartTime = 1000, EndTime = 3000 }), shouldMiss);
|
2020-03-02 03:42:48 +00:00
|
|
|
}
|
|
|
|
}
|