mirror of
https://github.com/ppy/osu.git
synced 2024-12-30 01:53:08 +08:00
30 lines
783 B
C#
30 lines
783 B
C#
// 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.
|
|
|
|
#nullable disable
|
|
|
|
using NUnit.Framework;
|
|
using osu.Game.Rulesets.Osu.Mods;
|
|
|
|
namespace osu.Game.Rulesets.Osu.Tests.Mods
|
|
{
|
|
public class TestSceneOsuModMagnetised : OsuModTestScene
|
|
{
|
|
[TestCase(0.1f)]
|
|
[TestCase(0.5f)]
|
|
[TestCase(1)]
|
|
public void TestMagnetised(float strength)
|
|
{
|
|
CreateModTest(new ModTestData
|
|
{
|
|
Mod = new OsuModMagnetised
|
|
{
|
|
AttractionStrength = { Value = strength },
|
|
},
|
|
PassCondition = () => true,
|
|
Autoplay = false,
|
|
});
|
|
}
|
|
}
|
|
}
|