mirror of
https://github.com/ppy/osu.git
synced 2025-01-28 06:42:54 +08:00
Add test coverage
This commit is contained in:
parent
060bf8beff
commit
4e3bdb2b56
@ -454,6 +454,23 @@ namespace osu.Game.Tests.Visual.SongSelect
|
||||
AddStep("Un-filter", () => carousel.Filter(new FilterCriteria(), false));
|
||||
}
|
||||
|
||||
[Test]
|
||||
public void TestRewind()
|
||||
{
|
||||
const int local_set_count = 3;
|
||||
const int random_select_count = local_set_count * 3;
|
||||
loadBeatmaps(setCount: local_set_count);
|
||||
|
||||
for (int i = 0; i < random_select_count; i++)
|
||||
nextRandom();
|
||||
|
||||
for (int i = 0; i < random_select_count; i++)
|
||||
{
|
||||
prevRandom();
|
||||
AddAssert("correct random last selected", () => selectedSets.Peek() == carousel.SelectedBeatmapSet);
|
||||
}
|
||||
}
|
||||
|
||||
[Test]
|
||||
public void TestRewindToDeletedBeatmap()
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user