mirror of
https://github.com/osukey/osukey.git
synced 2025-05-09 15:47:38 +09:00
Fix score order related test failure
This commit is contained in:
parent
d13a66a96c
commit
e9a2d23542
@ -2,12 +2,14 @@
|
|||||||
// See the LICENCE file in the repository root for full licence text.
|
// See the LICENCE file in the repository root for full licence text.
|
||||||
|
|
||||||
using System;
|
using System;
|
||||||
|
using System.Collections.Generic;
|
||||||
using System.Linq;
|
using System.Linq;
|
||||||
using NUnit.Framework;
|
using NUnit.Framework;
|
||||||
using osu.Framework.Graphics;
|
using osu.Framework.Graphics;
|
||||||
using osu.Framework.Testing;
|
using osu.Framework.Testing;
|
||||||
using osu.Framework.Utils;
|
using osu.Framework.Utils;
|
||||||
using osu.Game.Models;
|
using osu.Game.Models;
|
||||||
|
using osu.Game.Rulesets.Scoring;
|
||||||
using osu.Game.Scoring;
|
using osu.Game.Scoring;
|
||||||
using osu.Game.Screens.Ranking;
|
using osu.Game.Screens.Ranking;
|
||||||
using osu.Game.Tests.Resources;
|
using osu.Game.Tests.Resources;
|
||||||
@ -208,13 +210,19 @@ namespace osu.Game.Tests.Visual.Ranking
|
|||||||
public void TestKeyboardNavigation()
|
public void TestKeyboardNavigation()
|
||||||
{
|
{
|
||||||
var lowestScore = TestResources.CreateTestScoreInfo();
|
var lowestScore = TestResources.CreateTestScoreInfo();
|
||||||
lowestScore.MaxCombo = 100;
|
lowestScore.OnlineID = 3;
|
||||||
|
lowestScore.TotalScore = 0;
|
||||||
|
lowestScore.Statistics = new Dictionary<HitResult, int>();
|
||||||
|
|
||||||
var middleScore = TestResources.CreateTestScoreInfo();
|
var middleScore = TestResources.CreateTestScoreInfo();
|
||||||
middleScore.MaxCombo = 200;
|
middleScore.OnlineID = 2;
|
||||||
|
middleScore.TotalScore = 0;
|
||||||
|
middleScore.Statistics = new Dictionary<HitResult, int>();
|
||||||
|
|
||||||
var highestScore = TestResources.CreateTestScoreInfo();
|
var highestScore = TestResources.CreateTestScoreInfo();
|
||||||
highestScore.MaxCombo = 300;
|
highestScore.OnlineID = 1;
|
||||||
|
highestScore.TotalScore = 0;
|
||||||
|
highestScore.Statistics = new Dictionary<HitResult, int>();
|
||||||
|
|
||||||
createListStep(() => new ScorePanelList());
|
createListStep(() => new ScorePanelList());
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user