1
0
mirror of https://github.com/ppy/osu.git synced 2025-02-16 01:03:21 +08:00

Change test exposure to property instead of method

This commit is contained in:
Dean Herbert 2022-01-30 02:29:51 +09:00
parent 9861c50b33
commit 51acf79935

View File

@ -101,7 +101,7 @@ namespace osu.Game.Tests.Visual.SongSelect
public void TestGlobalScoresDisplay() public void TestGlobalScoresDisplay()
{ {
AddStep(@"Set scope", () => leaderboard.Scope = BeatmapLeaderboardScope.Global); AddStep(@"Set scope", () => leaderboard.Scope = BeatmapLeaderboardScope.Global);
AddStep(@"New Scores", () => leaderboard.SetScores(generateSampleScores(null))); AddStep(@"New Scores", () => leaderboard.Scores = generateSampleScores(null));
} }
[Test] [Test]
@ -417,7 +417,11 @@ namespace osu.Game.Tests.Visual.SongSelect
PlaceholderState = state; PlaceholderState = state;
} }
public void SetScores(ICollection<ScoreInfo> scores) => Scores = scores; public new ICollection<ScoreInfo> Scores
{
get => base.Scores;
set => base.Scores = value;
}
} }
} }
} }