1
0
mirror of https://github.com/ppy/osu.git synced 2024-11-06 06:57:39 +08:00

Remove unnecessary test checks

This commit is contained in:
Joehu 2019-07-06 12:07:13 -07:00
parent 1534b75d27
commit 5767f4360e

View File

@ -43,13 +43,7 @@ namespace osu.Game.Tests.Visual.SongSelect
AddStep(@"Not logged in", () => leaderboard.SetRetrievalState(PlaceholderState.NotLoggedIn));
AddStep(@"Unavailable", () => leaderboard.SetRetrievalState(PlaceholderState.Unavailable));
AddStep(@"Ranked beatmap", rankedBeatmap);
AddStep(@"Approved beatmap", approvedBeatmap);
AddStep(@"Qualified beatmap", qualifiedBeatmap);
AddStep(@"Loved beatmap", lovedBeatmap);
AddStep(@"Pending beatmap", pendingBeatmap);
AddStep(@"WIP beatmap", wipBeatmap);
AddStep(@"Graveyard beatmap", graveyardBeatmap);
AddStep(@"Unpublished beatmap", unpublishedBeatmap);
}
private void newScores()
@ -250,33 +244,6 @@ namespace osu.Game.Tests.Visual.SongSelect
};
}
private void approvedBeatmap()
{
leaderboard.Beatmap = new BeatmapInfo
{
OnlineBeatmapID = 1113057,
Status = BeatmapSetOnlineStatus.Approved,
};
}
private void qualifiedBeatmap()
{
leaderboard.Beatmap = new BeatmapInfo
{
OnlineBeatmapID = 1113057,
Status = BeatmapSetOnlineStatus.Qualified,
};
}
private void lovedBeatmap()
{
leaderboard.Beatmap = new BeatmapInfo
{
OnlineBeatmapID = 1113057,
Status = BeatmapSetOnlineStatus.Loved,
};
}
private void pendingBeatmap()
{
leaderboard.Beatmap = new BeatmapInfo
@ -286,33 +253,6 @@ namespace osu.Game.Tests.Visual.SongSelect
};
}
private void wipBeatmap()
{
leaderboard.Beatmap = new BeatmapInfo
{
OnlineBeatmapID = 1113057,
Status = BeatmapSetOnlineStatus.WIP,
};
}
private void graveyardBeatmap()
{
leaderboard.Beatmap = new BeatmapInfo
{
OnlineBeatmapID = 1113057,
Status = BeatmapSetOnlineStatus.Graveyard,
};
}
private void unpublishedBeatmap()
{
leaderboard.Beatmap = new BeatmapInfo
{
OnlineBeatmapID = null,
Status = BeatmapSetOnlineStatus.None,
};
}
private class FailableLeaderboard : BeatmapLeaderboard
{
public void SetRetrievalState(PlaceholderState state)