1
0
mirror of https://github.com/ppy/osu.git synced 2024-11-11 09:27:29 +08:00

Remove nullable disable

This commit is contained in:
Daniel Cios 2024-09-20 18:07:26 +02:00
parent 73b6744a97
commit 59df9cbf0f

View File

@ -1,8 +1,6 @@
// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence. // 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. // See the LICENCE file in the repository root for full licence text.
#nullable disable
using System.Linq; using System.Linq;
using NUnit.Framework; using NUnit.Framework;
using osu.Framework.Graphics; using osu.Framework.Graphics;
@ -19,14 +17,14 @@ namespace osu.Game.Tests.Visual.UserInterface
{ {
public partial class TestSceneSettingsColour : OsuManualInputManagerTestScene public partial class TestSceneSettingsColour : OsuManualInputManagerTestScene
{ {
private SettingsColour component; private SettingsColour? component;
[Test] [Test]
public void TestColour() public void TestColour()
{ {
createContent(); createContent();
AddRepeatStep("set random colour", () => component.Current.Value = randomColour(), 4); AddRepeatStep("set random colour", () => component!.Current.Value = randomColour(), 4);
} }
[Test] [Test]
@ -36,7 +34,7 @@ namespace osu.Game.Tests.Visual.UserInterface
AddStep("click colour", () => AddStep("click colour", () =>
{ {
InputManager.MoveMouseTo(component); InputManager.MoveMouseTo(component!);
InputManager.Click(MouseButton.Left); InputManager.Click(MouseButton.Left);
}); });