1
0
mirror of https://github.com/ppy/osu.git synced 2024-12-30 10:02:54 +08:00
osu-lazer/osu.Game.Rulesets.Mania.Tests/Mods/TestSceneManiaModPerfect.cs

31 lines
1007 B
C#
Raw Normal View History

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