From f5e510cdf2d510fa0995f903a0af33cc0b64c73b Mon Sep 17 00:00:00 2001 From: EVAST9919 Date: Sun, 12 Nov 2017 09:09:54 +0300 Subject: [PATCH] CI fixes --- osu.Game.Tests/Visual/TestCaseBeatmapScoresContainer.cs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/osu.Game.Tests/Visual/TestCaseBeatmapScoresContainer.cs b/osu.Game.Tests/Visual/TestCaseBeatmapScoresContainer.cs index 274cee8d3a..8cae3feae2 100644 --- a/osu.Game.Tests/Visual/TestCaseBeatmapScoresContainer.cs +++ b/osu.Game.Tests/Visual/TestCaseBeatmapScoresContainer.cs @@ -25,10 +25,10 @@ namespace osu.Game.Tests.Visual private readonly IEnumerable anotherScores; private readonly OnlineScore topScore; private readonly Box background; - private readonly Container container; public TestCaseBeatmapScoresContainer() { + Container container; ScoresContainer scoresContainer; Child = container = new Container @@ -47,14 +47,14 @@ namespace osu.Game.Tests.Visual AddStep("scores pack 1", () => scoresContainer.Scores = scores); AddStep("scores pack 2", () => scoresContainer.Scores = anotherScores); - AddStep("only top score", () => scoresContainer.Scores = new OnlineScore[] { topScore }); + AddStep("only top score", () => scoresContainer.Scores = new[] { topScore }); AddStep("remove scores", scoresContainer.CleanAllScores); AddStep("turn on loading", () => scoresContainer.IsLoading = true); AddStep("turn off loading", () => scoresContainer.IsLoading = false); AddStep("resize to big", () => container.ResizeWidthTo(1, 300)); AddStep("resize to normal", () => container.ResizeWidthTo(0.8f, 300)); - scores = new OnlineScore[] + scores = new[] { new OnlineScore { @@ -166,7 +166,7 @@ namespace osu.Game.Tests.Visual s.Statistics.Add("50", RNG.Next(2000)); } - anotherScores = new OnlineScore[] + anotherScores = new[] { new OnlineScore {