mirror of
https://github.com/ppy/osu.git
synced 2025-02-15 22:22:54 +08:00
Fix remaining cases of pollution
This commit is contained in:
parent
22c3be2c6f
commit
e81dfcad4c
@ -334,10 +334,19 @@ namespace osu.Game.Tests.Visual.SongSelect
|
|||||||
[Test]
|
[Test]
|
||||||
public void TestHiding()
|
public void TestHiding()
|
||||||
{
|
{
|
||||||
BeatmapSetInfo hidingSet = createTestBeatmapSet(1);
|
BeatmapSetInfo hidingSet = null;
|
||||||
|
List<BeatmapSetInfo> hiddenList = new List<BeatmapSetInfo>();
|
||||||
|
|
||||||
|
AddStep("create hidden set", () =>
|
||||||
|
{
|
||||||
|
hidingSet = createTestBeatmapSet(1);
|
||||||
hidingSet.Beatmaps[1].Hidden = true;
|
hidingSet.Beatmaps[1].Hidden = true;
|
||||||
|
|
||||||
loadBeatmaps(new List<BeatmapSetInfo> { hidingSet });
|
hiddenList.Clear();
|
||||||
|
hiddenList.Add(hidingSet);
|
||||||
|
});
|
||||||
|
|
||||||
|
loadBeatmaps(hiddenList);
|
||||||
|
|
||||||
setSelected(1, 1);
|
setSelected(1, 1);
|
||||||
|
|
||||||
@ -371,11 +380,14 @@ namespace osu.Game.Tests.Visual.SongSelect
|
|||||||
[Test]
|
[Test]
|
||||||
public void TestSelectingFilteredRuleset()
|
public void TestSelectingFilteredRuleset()
|
||||||
{
|
{
|
||||||
|
BeatmapSetInfo testMixed = null;
|
||||||
|
|
||||||
createCarousel();
|
createCarousel();
|
||||||
|
|
||||||
var testMixed = createTestBeatmapSet(set_count + 1);
|
|
||||||
AddStep("add mixed ruleset beatmapset", () =>
|
AddStep("add mixed ruleset beatmapset", () =>
|
||||||
{
|
{
|
||||||
|
testMixed = createTestBeatmapSet(set_count + 1);
|
||||||
|
|
||||||
for (int i = 0; i <= 2; i++)
|
for (int i = 0; i <= 2; i++)
|
||||||
{
|
{
|
||||||
testMixed.Beatmaps[i].Ruleset = rulesets.AvailableRulesets.ElementAt(i);
|
testMixed.Beatmaps[i].Ruleset = rulesets.AvailableRulesets.ElementAt(i);
|
||||||
|
Loading…
Reference in New Issue
Block a user