From 006ac44e117e6d732aa56e42b61062c882dc825e Mon Sep 17 00:00:00 2001 From: FreezyLemon Date: Thu, 7 Dec 2017 10:29:54 +0100 Subject: [PATCH] Fixed up style in the ChatDisplay test --- osu.Game.Tests/Visual/TestCaseChatDisplay.cs | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/osu.Game.Tests/Visual/TestCaseChatDisplay.cs b/osu.Game.Tests/Visual/TestCaseChatDisplay.cs index e23531f46a..092f92530b 100644 --- a/osu.Game.Tests/Visual/TestCaseChatDisplay.cs +++ b/osu.Game.Tests/Visual/TestCaseChatDisplay.cs @@ -12,7 +12,7 @@ namespace osu.Game.Tests.Visual [Description("Testing chat api and overlay")] internal class TestCaseChatDisplay : OsuTestCase { - private BeatmapSetOverlay beatmapSetOverlay; + private readonly BeatmapSetOverlay beatmapSetOverlay; private readonly ChatOverlay chat; private DependencyContainer dependencies; @@ -21,12 +21,10 @@ namespace osu.Game.Tests.Visual public TestCaseChatDisplay() { - chat = new ChatOverlay + Add(chat = new ChatOverlay { State = Visibility.Visible - }; - - Add(chat); + }); Add(beatmapSetOverlay = new BeatmapSetOverlay()); }