mirror of
https://github.com/ppy/osu.git
synced 2024-11-16 13:17:26 +08:00
55 lines
1.5 KiB
C#
55 lines
1.5 KiB
C#
// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
|
|
// See the LICENCE file in the repository root for full licence text.
|
|
|
|
#nullable disable
|
|
|
|
using System.Collections.Generic;
|
|
using NUnit.Framework;
|
|
using osu.Game.Beatmaps;
|
|
using osu.Game.Rulesets.Mania.Beatmaps;
|
|
using osu.Game.Rulesets.Mania.UI;
|
|
|
|
namespace osu.Game.Rulesets.Mania.Tests.Skinning
|
|
{
|
|
public class TestScenePlayfield : ManiaSkinnableTestScene
|
|
{
|
|
private List<StageDefinition> stageDefinitions = new List<StageDefinition>();
|
|
|
|
[Test]
|
|
public void TestSingleStage()
|
|
{
|
|
AddStep("create stage", () =>
|
|
{
|
|
stageDefinitions = new List<StageDefinition>
|
|
{
|
|
new StageDefinition(2)
|
|
};
|
|
|
|
SetContents(_ => new ManiaPlayfield(stageDefinitions));
|
|
});
|
|
}
|
|
|
|
[Test]
|
|
public void TestDualStages()
|
|
{
|
|
AddStep("create stage", () =>
|
|
{
|
|
stageDefinitions = new List<StageDefinition>
|
|
{
|
|
new StageDefinition(2),
|
|
new StageDefinition(2)
|
|
};
|
|
|
|
SetContents(_ => new ManiaPlayfield(stageDefinitions));
|
|
});
|
|
}
|
|
|
|
protected override IBeatmap CreateBeatmapForSkinProvider()
|
|
{
|
|
var maniaBeatmap = (ManiaBeatmap)base.CreateBeatmapForSkinProvider();
|
|
maniaBeatmap.Stages = stageDefinitions;
|
|
return maniaBeatmap;
|
|
}
|
|
}
|
|
}
|