mirror of
https://github.com/ppy/osu.git
synced 2025-01-26 16:53:20 +08:00
Add testing of different strengths
This commit is contained in:
parent
f07502ac5f
commit
987aa5a21c
@ -8,15 +8,19 @@ namespace osu.Game.Rulesets.Osu.Tests.Mods
|
|||||||
{
|
{
|
||||||
public class TestSceneOsuModAimAssist : OsuModTestScene
|
public class TestSceneOsuModAimAssist : OsuModTestScene
|
||||||
{
|
{
|
||||||
[Test]
|
[TestCase(0.1f)]
|
||||||
public void TestAimAssist()
|
[TestCase(0.5f)]
|
||||||
|
[TestCase(1)]
|
||||||
|
public void TestAimAssist(float strength)
|
||||||
{
|
{
|
||||||
var mod = new OsuModAimAssist();
|
|
||||||
|
|
||||||
CreateModTest(new ModTestData
|
CreateModTest(new ModTestData
|
||||||
{
|
{
|
||||||
|
Mod = new OsuModAimAssist
|
||||||
|
{
|
||||||
|
AssistStrength = { Value = strength },
|
||||||
|
},
|
||||||
|
PassCondition = () => true,
|
||||||
Autoplay = false,
|
Autoplay = false,
|
||||||
Mod = mod,
|
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user