mirror of
https://github.com/ppy/osu.git
synced 2025-01-28 20:32:55 +08:00
Tidy up test
This commit is contained in:
parent
68752f95e5
commit
87ec33bb66
@ -150,14 +150,16 @@ namespace osu.Game.Tests.Visual.Gameplay
|
|||||||
createLeaderboard();
|
createLeaderboard();
|
||||||
addLocalPlayer();
|
addLocalPlayer();
|
||||||
|
|
||||||
AddStep("initialize api", () =>
|
AddStep("Add friend to API", () =>
|
||||||
{
|
{
|
||||||
var api = (DummyAPIAccess)API;
|
var api = (DummyAPIAccess)API;
|
||||||
|
|
||||||
|
api.Friends.Clear();
|
||||||
api.Friends.Add(friend);
|
api.Friends.Add(friend);
|
||||||
});
|
});
|
||||||
|
|
||||||
int playerNumber = 1;
|
int playerNumber = 1;
|
||||||
|
|
||||||
AddRepeatStep("add 3 other players", () => createRandomScore(new APIUser { Username = $"Player {playerNumber++}" }), 3);
|
AddRepeatStep("add 3 other players", () => createRandomScore(new APIUser { Username = $"Player {playerNumber++}" }), 3);
|
||||||
AddUntilStep("there are no pink color score", () => leaderboard.ChildrenOfType<Box>().All(b => b.Colour != Color4Extensions.FromHex("ff549a")));
|
AddUntilStep("there are no pink color score", () => leaderboard.ChildrenOfType<Box>().All(b => b.Colour != Color4Extensions.FromHex("ff549a")));
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user