Exemple #1
0
        public TestSceneBeatmapLeaderboard()
        {
            Add(dialogOverlay = new DialogOverlay
            {
                Depth = -1
            });

            Add(leaderboard = new FailableLeaderboard
            {
                Origin = Anchor.Centre,
                Anchor = Anchor.Centre,
                Size   = new Vector2(550f, 450f),
                Scope  = BeatmapLeaderboardScope.Global,
            });

            AddStep(@"New Scores", newScores);
            AddStep(@"Show personal best", showPersonalBest);
            AddStep(@"Empty Scores", () => leaderboard.SetRetrievalState(PlaceholderState.NoScores));
            AddStep(@"Network failure", () => leaderboard.SetRetrievalState(PlaceholderState.NetworkFailure));
            AddStep(@"No supporter", () => leaderboard.SetRetrievalState(PlaceholderState.NotSupporter));
            AddStep(@"Not logged in", () => leaderboard.SetRetrievalState(PlaceholderState.NotLoggedIn));
            AddStep(@"Unavailable", () => leaderboard.SetRetrievalState(PlaceholderState.Unavailable));
            AddStep(@"None selected", () => leaderboard.SetRetrievalState(PlaceholderState.NoneSelected));
            foreach (BeatmapSetOnlineStatus status in Enum.GetValues(typeof(BeatmapSetOnlineStatus)))
            {
                AddStep($"{status} beatmap", () => showBeatmapWithStatus(status));
            }
            AddStep("null personal best position", showPersonalBestWithNullPosition);
        }
Exemple #2
0
        public TestCaseLeaderboard()
        {
            Add(leaderboard = new FailableLeaderboard
            {
                Origin = Anchor.Centre,
                Anchor = Anchor.Centre,
                Size   = new Vector2(550f, 450f),
                Scope  = LeaderboardScope.Global,
            });

            AddStep(@"New Scores", newScores);
            AddStep(@"Empty Scores", () => leaderboard.SetRetrievalState(PlaceholderState.NoScores));
            AddStep(@"Network failure", () => leaderboard.SetRetrievalState(PlaceholderState.NetworkFailure));
            AddStep(@"No supporter", () => leaderboard.SetRetrievalState(PlaceholderState.NotSupporter));
            AddStep(@"Not logged in", () => leaderboard.SetRetrievalState(PlaceholderState.NotLoggedIn));
            AddStep(@"Real beatmap", realBeatmap);
        }
Exemple #3
0
        public TestSceneLeaderboard()
        {
            Add(leaderboard = new FailableLeaderboard
            {
                Origin = Anchor.Centre,
                Anchor = Anchor.Centre,
                Size   = new Vector2(550f, 450f),
                Scope  = BeatmapLeaderboardScope.Global,
            });

            AddStep(@"New Scores", newScores);
            AddStep(@"Empty Scores", () => leaderboard.SetRetrievalState(PlaceholderState.NoScores));
            AddStep(@"Network failure", () => leaderboard.SetRetrievalState(PlaceholderState.NetworkFailure));
            AddStep(@"No supporter", () => leaderboard.SetRetrievalState(PlaceholderState.NotSupporter));
            AddStep(@"Not logged in", () => leaderboard.SetRetrievalState(PlaceholderState.NotLoggedIn));
            AddStep(@"Unavailable", () => leaderboard.SetRetrievalState(PlaceholderState.Unavailable));
            foreach (BeatmapSetOnlineStatus status in Enum.GetValues(typeof(BeatmapSetOnlineStatus)))
            {
                AddStep($"{status} beatmap", () => showBeatmapWithStatus(status));
            }
        }