From 728d1cb7f65110cb3f49459e776eff311f647dfd Mon Sep 17 00:00:00 2001 From: Dean Herbert Date: Fri, 22 Dec 2017 19:24:54 +0900 Subject: [PATCH] Formatting and more dynamically testable references --- osu.Game.Tests/Visual/TestCaseRankGraph.cs | 13 +++++++++---- osu.Game.Tests/Visual/TestCaseUserProfile.cs | 2 +- 2 files changed, 10 insertions(+), 5 deletions(-) diff --git a/osu.Game.Tests/Visual/TestCaseRankGraph.cs b/osu.Game.Tests/Visual/TestCaseRankGraph.cs index 5cdb6269f7..489fba6501 100644 --- a/osu.Game.Tests/Visual/TestCaseRankGraph.cs +++ b/osu.Game.Tests/Visual/TestCaseRankGraph.cs @@ -9,23 +9,28 @@ using osu.Framework.Graphics.Shapes; using osu.Game.Graphics; using System.Collections.Generic; using System; +using osu.Game.Graphics.UserInterface; using osu.Game.Users; namespace osu.Game.Tests.Visual { public class TestCaseRankGraph : OsuTestCase { - public override IReadOnlyList RequiredTypes => new[] { typeof(RankChart) }; + public override IReadOnlyList RequiredTypes => new[] + { + typeof(RankGraph), + typeof(LineGraph) + }; public TestCaseRankGraph() { - RankChart graph; + RankGraph graph; var data = new int[89]; var dataWithZeros = new int[89]; var smallData = new int[89]; - for(int i = 0; i < 89; i++) + for (int i = 0; i < 89; i++) data[i] = dataWithZeros[i] = (i + 1) * 1000; for (int i = 20; i < 60; i++) @@ -46,7 +51,7 @@ namespace osu.Game.Tests.Visual RelativeSizeAxes = Axes.Both, Colour = OsuColour.Gray(0.2f) }, - graph = new RankChart + graph = new RankGraph { RelativeSizeAxes = Axes.Both, } diff --git a/osu.Game.Tests/Visual/TestCaseUserProfile.cs b/osu.Game.Tests/Visual/TestCaseUserProfile.cs index 7f2e7779d9..38d59f03b5 100644 --- a/osu.Game.Tests/Visual/TestCaseUserProfile.cs +++ b/osu.Game.Tests/Visual/TestCaseUserProfile.cs @@ -17,7 +17,7 @@ namespace osu.Game.Tests.Visual { typeof(ProfileHeader), typeof(UserProfileOverlay), - typeof(RankChart), + typeof(RankGraph), typeof(LineGraph), };