update tests to match SoloScoreInfo

This commit is contained in:
tsunyoku
2022-07-17 14:22:46 +01:00
parent 7135329c8c
commit 14ae183c70

View File

@ -25,7 +25,15 @@ namespace osu.Game.Tests.Visual.Online
{ {
PP = 1047.21, PP = 1047.21,
Rank = ScoreRank.SH, Rank = ScoreRank.SH,
BeatmapID = 2058788, Beatmap = new APIBeatmap
{
BeatmapSet = new APIBeatmapSet
{
Title = "JUSTadICE (TV Size)",
Artist = "Oomori Seiko",
},
DifficultyName = "Extreme"
},
EndedAt = DateTimeOffset.Now, EndedAt = DateTimeOffset.Now,
Mods = new[] Mods = new[]
{ {
@ -35,21 +43,20 @@ namespace osu.Game.Tests.Visual.Online
}, },
Accuracy = 0.9813 Accuracy = 0.9813
}; };
var firstBeatmap = new APIBeatmap
{
BeatmapSet = new APIBeatmapSet()
{
Title = "JUSTadICE (TV Size)",
Artist = "Oomori Seiko",
},
DifficultyName = "Extreme"
};
var secondScore = new SoloScoreInfo var secondScore = new SoloScoreInfo
{ {
PP = 134.32, PP = 134.32,
Rank = ScoreRank.A, Rank = ScoreRank.A,
BeatmapID = 767046, Beatmap = new APIBeatmap
{
BeatmapSet = new APIBeatmapSet
{
Title = "Triumph & Regret",
Artist = "typeMARS",
},
DifficultyName = "[4K] Regret"
},
EndedAt = DateTimeOffset.Now, EndedAt = DateTimeOffset.Now,
Mods = new[] Mods = new[]
{ {
@ -58,49 +65,38 @@ namespace osu.Game.Tests.Visual.Online
}, },
Accuracy = 0.998546 Accuracy = 0.998546
}; };
var secondBeatmap = new APIBeatmap
{
BeatmapSet = new APIBeatmapSet()
{
Title = "Triumph & Regret",
Artist = "typeMARS",
},
DifficultyName = "[4K] Regret"
};
var thirdScore = new SoloScoreInfo var thirdScore = new SoloScoreInfo
{ {
PP = 96.83, PP = 96.83,
Rank = ScoreRank.S, Rank = ScoreRank.S,
BeatmapID = 2134713, Beatmap = new APIBeatmap
EndedAt = DateTimeOffset.Now,
Accuracy = 0.9726
};
var thirdBeatmap = new APIBeatmap
{ {
BeatmapSet = new APIBeatmapSet() BeatmapSet = new APIBeatmapSet
{ {
Title = "Idolize", Title = "Idolize",
Artist = "Creo", Artist = "Creo",
}, },
DifficultyName = "Insane" DifficultyName = "Insane"
},
EndedAt = DateTimeOffset.Now,
Accuracy = 0.9726
}; };
var noPPScore = new SoloScoreInfo var noPPScore = new SoloScoreInfo
{ {
Rank = ScoreRank.B, Rank = ScoreRank.B,
BeatmapID = 992512, Beatmap = new APIBeatmap
EndedAt = DateTimeOffset.Now,
Accuracy = 0.55879
};
var noPPBeatmap = new APIBeatmap
{ {
BeatmapSet = new APIBeatmapSet() BeatmapSet = new APIBeatmapSet
{ {
Title = "Galaxy Collapse", Title = "C18H27NO3(extend)",
Artist = "Kurokotei", Artist = "Team Grimoire",
}, },
DifficultyName = "[4K] Cataclysmic Hypernova" DifficultyName = "[4K] Cataclysmic Hypernova"
},
EndedAt = DateTimeOffset.Now,
Accuracy = 0.55879
}; };
Add(new FillFlowContainer Add(new FillFlowContainer
@ -113,12 +109,12 @@ namespace osu.Game.Tests.Visual.Online
Spacing = new Vector2(0, 10), Spacing = new Vector2(0, 10),
Children = new[] Children = new[]
{ {
new ColourProvidedContainer(OverlayColourScheme.Green, new DrawableProfileScore(firstScore, firstBeatmap)), new ColourProvidedContainer(OverlayColourScheme.Green, new DrawableProfileScore(firstScore)),
new ColourProvidedContainer(OverlayColourScheme.Green, new DrawableProfileScore(secondScore, secondBeatmap)), new ColourProvidedContainer(OverlayColourScheme.Green, new DrawableProfileScore(secondScore)),
new ColourProvidedContainer(OverlayColourScheme.Pink, new DrawableProfileScore(noPPScore, noPPBeatmap)), new ColourProvidedContainer(OverlayColourScheme.Pink, new DrawableProfileScore(noPPScore)),
new ColourProvidedContainer(OverlayColourScheme.Pink, new DrawableProfileWeightedScore(firstScore, firstBeatmap, 0.97)), new ColourProvidedContainer(OverlayColourScheme.Pink, new DrawableProfileWeightedScore(firstScore, 0.97)),
new ColourProvidedContainer(OverlayColourScheme.Pink, new DrawableProfileWeightedScore(secondScore, secondBeatmap, 0.85)), new ColourProvidedContainer(OverlayColourScheme.Pink, new DrawableProfileWeightedScore(secondScore, 0.85)),
new ColourProvidedContainer(OverlayColourScheme.Pink, new DrawableProfileWeightedScore(thirdScore, thirdBeatmap, 0.66)), new ColourProvidedContainer(OverlayColourScheme.Pink, new DrawableProfileWeightedScore(thirdScore, 0.66)),
} }
}); });
} }