From e83710d3b81c2a671748826243eb0c2b8dd9df21 Mon Sep 17 00:00:00 2001 From: Andrei Zavatski Date: Wed, 19 Jun 2019 23:15:00 +0300 Subject: [PATCH] Add a testcase --- osu.Game.Tests/Visual/Online/TestSceneScoresContainer.cs | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/osu.Game.Tests/Visual/Online/TestSceneScoresContainer.cs b/osu.Game.Tests/Visual/Online/TestSceneScoresContainer.cs index 2f88a4b01d..06414af865 100644 --- a/osu.Game.Tests/Visual/Online/TestSceneScoresContainer.cs +++ b/osu.Game.Tests/Visual/Online/TestSceneScoresContainer.cs @@ -3,6 +3,7 @@ using System; using System.Collections.Generic; +using System.Linq; using osu.Framework.Allocation; using osu.Framework.Graphics; using osu.Framework.Graphics.Containers; @@ -39,8 +40,7 @@ namespace osu.Game.Tests.Visual.Online { Anchor = Anchor.TopCentre, Origin = Anchor.TopCentre, - AutoSizeAxes = Axes.Y, - RelativeSizeAxes = Axes.X, + RelativeSizeAxes = Axes.Both, Width = 0.8f, Children = new Drawable[] { @@ -173,7 +173,9 @@ namespace osu.Game.Tests.Visual.Online s.Statistics.Add(HitResult.Miss, RNG.Next(2000)); } - scoresContainer.Scores = scores; + AddStep("Load all scores", () => scoresContainer.Scores = scores); + AddStep("Load null scores", () => scoresContainer.Scores = null); + AddStep("Load only one score", () => scoresContainer.Scores = new[] { scores.First() }); } [BackgroundDependencyLoader]