-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make remains of
TestSceneModSettings
non-visual
As they're not really testing anything visual.
- Loading branch information
Showing
2 changed files
with
36 additions
and
49 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
// 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.Mods; | ||
using osu.Game.Rulesets.Osu.Mods; | ||
|
||
namespace osu.Game.Tests.Mods | ||
{ | ||
public class ModSettingsTest | ||
{ | ||
[Test] | ||
public void TestModSettingsUnboundWhenCopied() | ||
{ | ||
var original = new OsuModDoubleTime(); | ||
var copy = (OsuModDoubleTime)original.DeepClone(); | ||
|
||
original.SpeedChange.Value = 2; | ||
|
||
Assert.That(original.SpeedChange.Value, Is.EqualTo(2.0)); | ||
Assert.That(copy.SpeedChange.Value, Is.EqualTo(1.5)); | ||
} | ||
|
||
[Test] | ||
public void TestMultiModSettingsUnboundWhenCopied() | ||
{ | ||
var original = new MultiMod(new OsuModDoubleTime()); | ||
var copy = (MultiMod)original.DeepClone(); | ||
|
||
((OsuModDoubleTime)original.Mods[0]).SpeedChange.Value = 2; | ||
|
||
Assert.That(((OsuModDoubleTime)original.Mods[0]).SpeedChange.Value, Is.EqualTo(2.0)); | ||
Assert.That(((OsuModDoubleTime)copy.Mods[0]).SpeedChange.Value, Is.EqualTo(1.5)); | ||
} | ||
} | ||
} |
49 changes: 0 additions & 49 deletions
49
osu.Game.Tests/Visual/UserInterface/TestSceneModSettings.cs
This file was deleted.
Oops, something went wrong.