2021-08-14 03:30:26 +08:00
|
|
|
// 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 NUnit.Framework;
|
|
|
|
using osu.Game.Online.Rooms;
|
|
|
|
using osu.Game.Rulesets.Osu;
|
|
|
|
using osu.Game.Screens.OnlinePlay.Multiplayer;
|
2021-12-13 15:50:29 +08:00
|
|
|
using osu.Game.Tests.Resources;
|
2021-08-14 03:30:26 +08:00
|
|
|
|
|
|
|
namespace osu.Game.Tests.Visual.Multiplayer
|
|
|
|
{
|
|
|
|
public class TestSceneMultiplayerResults : ScreenTestScene
|
|
|
|
{
|
|
|
|
[Test]
|
|
|
|
public void TestDisplayResults()
|
|
|
|
{
|
|
|
|
MultiplayerResultsScreen screen = null;
|
|
|
|
|
|
|
|
AddStep("show results screen", () =>
|
|
|
|
{
|
|
|
|
var rulesetInfo = new OsuRuleset().RulesetInfo;
|
|
|
|
var beatmapInfo = CreateBeatmap(rulesetInfo).BeatmapInfo;
|
2021-12-13 15:50:29 +08:00
|
|
|
var score = TestResources.CreateTestScoreInfo(beatmapInfo);
|
2021-08-14 03:30:26 +08:00
|
|
|
|
2022-02-15 22:33:26 +08:00
|
|
|
Stack.Push(screen = new MultiplayerResultsScreen(score, 1, new PlaylistItem(beatmapInfo)));
|
2021-08-14 03:30:26 +08:00
|
|
|
});
|
|
|
|
|
|
|
|
AddUntilStep("wait for loaded", () => screen.IsLoaded);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|