mirror of
https://github.com/osukey/osukey.git
synced 2025-07-02 08:49:59 +09:00
Formatting and more dynamically testable references
This commit is contained in:
@ -9,17 +9,22 @@ using osu.Framework.Graphics.Shapes;
|
|||||||
using osu.Game.Graphics;
|
using osu.Game.Graphics;
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using System;
|
using System;
|
||||||
|
using osu.Game.Graphics.UserInterface;
|
||||||
using osu.Game.Users;
|
using osu.Game.Users;
|
||||||
|
|
||||||
namespace osu.Game.Tests.Visual
|
namespace osu.Game.Tests.Visual
|
||||||
{
|
{
|
||||||
public class TestCaseRankGraph : OsuTestCase
|
public class TestCaseRankGraph : OsuTestCase
|
||||||
{
|
{
|
||||||
public override IReadOnlyList<Type> RequiredTypes => new[] { typeof(RankChart) };
|
public override IReadOnlyList<Type> RequiredTypes => new[]
|
||||||
|
{
|
||||||
|
typeof(RankGraph),
|
||||||
|
typeof(LineGraph)
|
||||||
|
};
|
||||||
|
|
||||||
public TestCaseRankGraph()
|
public TestCaseRankGraph()
|
||||||
{
|
{
|
||||||
RankChart graph;
|
RankGraph graph;
|
||||||
|
|
||||||
var data = new int[89];
|
var data = new int[89];
|
||||||
var dataWithZeros = new int[89];
|
var dataWithZeros = new int[89];
|
||||||
@ -46,7 +51,7 @@ namespace osu.Game.Tests.Visual
|
|||||||
RelativeSizeAxes = Axes.Both,
|
RelativeSizeAxes = Axes.Both,
|
||||||
Colour = OsuColour.Gray(0.2f)
|
Colour = OsuColour.Gray(0.2f)
|
||||||
},
|
},
|
||||||
graph = new RankChart
|
graph = new RankGraph
|
||||||
{
|
{
|
||||||
RelativeSizeAxes = Axes.Both,
|
RelativeSizeAxes = Axes.Both,
|
||||||
}
|
}
|
||||||
|
@ -17,7 +17,7 @@ namespace osu.Game.Tests.Visual
|
|||||||
{
|
{
|
||||||
typeof(ProfileHeader),
|
typeof(ProfileHeader),
|
||||||
typeof(UserProfileOverlay),
|
typeof(UserProfileOverlay),
|
||||||
typeof(RankChart),
|
typeof(RankGraph),
|
||||||
typeof(LineGraph),
|
typeof(LineGraph),
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user