mirror of
https://github.com/ppy/osu.git
synced 2025-02-15 15:23:14 +08:00
Change test exposure to property instead of method
This commit is contained in:
parent
9861c50b33
commit
51acf79935
@ -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;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user