1
0
mirror of https://github.com/ppy/osu.git synced 2024-12-21 16:33:21 +08:00
osu-lazer/osu.Game.Rulesets.Catch.Tests/Mods/TestSceneCatchModPerfect.cs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

57 lines
2.0 KiB
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.
using NUnit.Framework;
using osu.Game.Rulesets.Catch.Mods;
using osu.Game.Rulesets.Catch.Objects;
using osu.Game.Rulesets.Objects;
using osu.Game.Rulesets.Objects.Types;
using osu.Game.Tests.Visual;
using osuTK;
2020-03-03 14:30:53 +08:00
namespace osu.Game.Rulesets.Catch.Tests.Mods
2020-03-02 11:42:48 +08:00
{
public class TestSceneCatchModPerfect : ModPerfectTestScene
{
protected override Ruleset CreatePlayerRuleset() => new CatchRuleset();
2020-03-02 11:42:48 +08:00
public TestSceneCatchModPerfect()
: base(new CatchModPerfect())
2020-03-02 11:42:48 +08:00
{
}
[TestCase(false)]
[TestCase(true)]
2020-03-10 23:36:56 +08:00
public void TestBananaShower(bool shouldMiss) => CreateHitObjectTest(new HitObjectTestData(new BananaShower { StartTime = 1000, EndTime = 3000 }, false), shouldMiss);
2020-03-02 11:42:48 +08:00
[TestCase(false)]
[TestCase(true)]
2020-03-10 23:36:56 +08:00
public void TestFruit(bool shouldMiss) => CreateHitObjectTest(new HitObjectTestData(new Fruit { StartTime = 1000 }), shouldMiss);
2020-03-02 11:42:48 +08:00
[TestCase(false)]
[TestCase(true)]
2020-03-03 14:33:54 +08:00
public void TestJuiceStream(bool shouldMiss)
2020-03-02 11:42:48 +08:00
{
var stream = new JuiceStream
{
StartTime = 1000,
Path = new SliderPath(PathType.Linear, new[]
{
Vector2.Zero,
new Vector2(100, 0),
})
};
2020-03-10 23:36:56 +08:00
CreateHitObjectTest(new HitObjectTestData(stream), shouldMiss);
2020-03-02 11:42:48 +08:00
}
// We only care about testing misses, hits are tested via JuiceStream
[TestCase(true)]
2020-03-10 23:36:56 +08:00
public void TestDroplet(bool shouldMiss) => CreateHitObjectTest(new HitObjectTestData(new Droplet { StartTime = 1000 }), shouldMiss);
2020-03-02 11:42:48 +08:00
// We only care about testing misses, hits are tested via JuiceStream
2020-09-29 14:36:08 +08:00
[TestCase(true)]
2020-03-10 23:36:56 +08:00
public void TestTinyDroplet(bool shouldMiss) => CreateHitObjectTest(new HitObjectTestData(new TinyDroplet { StartTime = 1000 }), shouldMiss);
2020-03-02 11:42:48 +08:00
}
}