2022-02-02 14:06:04 +08:00
|
|
|
// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
|
|
|
|
// See the LICENCE file in the repository root for full licence text.
|
|
|
|
|
2022-06-17 15:37:17 +08:00
|
|
|
#nullable disable
|
|
|
|
|
2022-02-02 14:06:04 +08:00
|
|
|
using NUnit.Framework;
|
|
|
|
using osu.Game.Rulesets.Osu.Mods;
|
|
|
|
|
|
|
|
namespace osu.Game.Rulesets.Osu.Tests.Mods
|
|
|
|
{
|
2022-04-01 11:15:26 +08:00
|
|
|
public class TestSceneOsuModMagnetised : OsuModTestScene
|
2022-02-02 14:06:04 +08:00
|
|
|
{
|
2022-02-02 15:15:14 +08:00
|
|
|
[TestCase(0.1f)]
|
|
|
|
[TestCase(0.5f)]
|
|
|
|
[TestCase(1)]
|
2022-04-01 11:15:26 +08:00
|
|
|
public void TestMagnetised(float strength)
|
2022-02-02 14:06:04 +08:00
|
|
|
{
|
|
|
|
CreateModTest(new ModTestData
|
|
|
|
{
|
2022-04-01 11:15:26 +08:00
|
|
|
Mod = new OsuModMagnetised
|
2022-02-02 15:15:14 +08:00
|
|
|
{
|
2022-04-01 12:03:48 +08:00
|
|
|
AttractionStrength = { Value = strength },
|
2022-02-02 15:15:14 +08:00
|
|
|
},
|
|
|
|
PassCondition = () => true,
|
2022-02-02 14:06:04 +08:00
|
|
|
Autoplay = false,
|
|
|
|
});
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|