mirror of
https://github.com/ppy/osu
synced 2024-12-13 18:37:04 +00:00
36 lines
1.0 KiB
C#
36 lines
1.0 KiB
C#
// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
|
|
// See the LICENCE file in the repository root for full licence text.
|
|
|
|
using System.Collections.Generic;
|
|
using NUnit.Framework;
|
|
using osu.Game.Rulesets.Osu;
|
|
using osu.Game.Rulesets.Osu.Scoring;
|
|
using osu.Game.Scoring;
|
|
using osu.Game.Screens.Ranking.Statistics;
|
|
|
|
namespace osu.Game.Tests.Visual.Ranking
|
|
{
|
|
public class TestSceneStatisticsPanel : OsuTestScene
|
|
{
|
|
[Test]
|
|
public void TestScore()
|
|
{
|
|
var score = new TestScoreInfo(new OsuRuleset().RulesetInfo)
|
|
{
|
|
ExtraStatistics =
|
|
{
|
|
["timing_distribution"] = TestSceneTimingDistributionGraph.CreateNormalDistribution(),
|
|
["hit_offsets"] = new List<HitOffset>()
|
|
}
|
|
};
|
|
|
|
loadPanel(score);
|
|
}
|
|
|
|
private void loadPanel(ScoreInfo score) => AddStep("load panel", () =>
|
|
{
|
|
Child = new StatisticsPanel(score);
|
|
});
|
|
}
|
|
}
|