1
0
mirror of https://github.com/ppy/osu.git synced 2025-02-22 16:16:07 +08:00

Add test coverage

This commit is contained in:
Dean Herbert 2025-02-18 13:08:33 +09:00
parent 20dbe096e0
commit 2d8e35be32
No known key found for this signature in database

View File

@ -24,11 +24,15 @@ namespace osu.Game.Rulesets.Osu.Tests.Mods
{
}
[Test]
public void TestMissTail() => CreateModTest(new ModTestData
[TestCase(true)]
[TestCase(false)]
public void TestMissTail(bool tailMiss) => CreateModTest(new ModTestData
{
Mod = new OsuModSuddenDeath(),
PassCondition = () => ((ModFailConditionTestPlayer)Player).CheckFailed(false),
Mod = new OsuModSuddenDeath
{
FailOnSliderTail = { Value = tailMiss }
},
PassCondition = () => ((ModFailConditionTestPlayer)Player).CheckFailed(tailMiss),
Autoplay = false,
CreateBeatmap = () => new Beatmap
{