Added test for Ouendan 2 style Hidden mod

This commit is contained in:
Roxie Wattz 2021-10-24 22:17:55 -07:00
parent d1b720af16
commit 03896fd2eb
1 changed files with 36 additions and 0 deletions

View File

@ -117,6 +117,42 @@ public void TestWithSliderReuse() => CreateModTest(new ModTestData
PassCondition = checkSomeHit
});
[Test]
public void OuendanTwoHidden() => CreateModTest(new ModTestData
{
Mod = new OsuModHidden { NoHitCircles = { Value = true } },
Autoplay = true,
Beatmap = new Beatmap
{
HitObjects = new List<HitObject>
{
new HitCircle
{
StartTime = 1000,
Position = new Vector2(206,142)
},
new HitCircle
{
StartTime = 2000,
Position = new Vector2(306,142)
},
new Slider
{
StartTime = 3000,
Position = new Vector2(156,242),
Path = new SliderPath(PathType.Linear, new[] { Vector2.Zero, new Vector2(200,0), })
},
new Spinner
{
Position = new Vector2(256,192),
StartTime = 7000,
EndTime = 9000
}
}
},
PassCondition = checkSomeHit
});
private bool checkSomeHit() => Player.ScoreProcessor.JudgedHits >= 4;
private bool objectWithIncreasedVisibilityHasIndex(int index)