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:
parent
20dbe096e0
commit
2d8e35be32
@ -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
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user