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
|
|
|
|
{
|
2020-04-23 18:25:06 +08:00
|
|
|
protected override Ruleset CreatePlayerRuleset() => new CatchRuleset();
|
|
|
|
|
2020-03-02 11:42:48 +08:00
|
|
|
public TestSceneCatchModPerfect()
|
2020-04-17 15:56:01 +08:00
|
|
|
: 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-07-21 16:04:29 +08:00
|
|
|
[TestCase(false)]
|
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
|
|
|
}
|
|
|
|
}
|