mirror of
https://github.com/osukey/osukey.git
synced 2025-07-02 16:59:53 +09:00
Add test coverage of aggregate room scores displaying correctly
This commit is contained in:
@ -70,6 +70,29 @@ namespace osu.Game.Tests.Visual.OnlinePlay
|
||||
return true;
|
||||
}
|
||||
|
||||
case GetRoomLeaderboardRequest roomLeaderboardRequest:
|
||||
roomLeaderboardRequest.TriggerSuccess(new APILeaderboard
|
||||
{
|
||||
Leaderboard = new List<APIUserScoreAggregate>
|
||||
{
|
||||
new APIUserScoreAggregate
|
||||
{
|
||||
TotalScore = 1000000,
|
||||
TotalAttempts = 5,
|
||||
CompletedBeatmaps = 2,
|
||||
User = new APIUser { Username = "best user" }
|
||||
},
|
||||
new APIUserScoreAggregate
|
||||
{
|
||||
TotalScore = 50,
|
||||
TotalAttempts = 1,
|
||||
CompletedBeatmaps = 1,
|
||||
User = new APIUser { Username = "worst user" }
|
||||
}
|
||||
}
|
||||
});
|
||||
return true;
|
||||
|
||||
case PartRoomRequest partRoomRequest:
|
||||
partRoomRequest.TriggerSuccess();
|
||||
return true;
|
||||
|
Reference in New Issue
Block a user