2022-05-28 11:15:19 +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.
|
|
|
|
|
|
|
|
using NUnit.Framework;
|
|
|
|
using osu.Game.Rulesets.Osu.Mods;
|
|
|
|
|
|
|
|
namespace osu.Game.Rulesets.Osu.Tests.Mods
|
|
|
|
{
|
2022-11-24 13:32:20 +08:00
|
|
|
public partial class TestSceneOsuModRepel : OsuModTestScene
|
2022-05-28 11:15:19 +08:00
|
|
|
{
|
|
|
|
[TestCase(0.1f)]
|
|
|
|
[TestCase(0.5f)]
|
|
|
|
[TestCase(1)]
|
|
|
|
public void TestRepel(float strength)
|
|
|
|
{
|
|
|
|
CreateModTest(new ModTestData
|
|
|
|
{
|
|
|
|
Mod = new OsuModRepel
|
|
|
|
{
|
2022-06-10 06:52:10 +08:00
|
|
|
RepulsionStrength = { Value = strength },
|
2022-05-28 11:15:19 +08:00
|
|
|
},
|
|
|
|
PassCondition = () => true,
|
|
|
|
Autoplay = false,
|
|
|
|
});
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|