mirror of
https://github.com/ppy/osu.git
synced 2025-02-04 23:43:00 +08:00
Add test
This commit is contained in:
parent
e3bbc2b128
commit
db7e82c560
@ -92,6 +92,30 @@ namespace osu.Game.Rulesets.Osu.Tests.Mods
|
|||||||
PassCondition = checkSomeHit
|
PassCondition = checkSomeHit
|
||||||
});
|
});
|
||||||
|
|
||||||
|
[Test]
|
||||||
|
public void TestWithSliderReuse() => CreateModTest(new ModTestData
|
||||||
|
{
|
||||||
|
Mod = new OsuModHidden(),
|
||||||
|
Autoplay = true,
|
||||||
|
Beatmap = new Beatmap
|
||||||
|
{
|
||||||
|
HitObjects = new List<HitObject>
|
||||||
|
{
|
||||||
|
new Slider
|
||||||
|
{
|
||||||
|
StartTime = 1000,
|
||||||
|
Path = new SliderPath(PathType.Linear, new[] { Vector2.Zero, new Vector2(100, 0), })
|
||||||
|
},
|
||||||
|
new Slider
|
||||||
|
{
|
||||||
|
StartTime = 4000,
|
||||||
|
Path = new SliderPath(PathType.Linear, new[] { Vector2.Zero, new Vector2(100, 0), })
|
||||||
|
},
|
||||||
|
}
|
||||||
|
},
|
||||||
|
PassCondition = checkSomeHit
|
||||||
|
});
|
||||||
|
|
||||||
private bool checkSomeHit()
|
private bool checkSomeHit()
|
||||||
{
|
{
|
||||||
return Player.ScoreProcessor.JudgedHits >= 4;
|
return Player.ScoreProcessor.JudgedHits >= 4;
|
||||||
|
Loading…
Reference in New Issue
Block a user