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