mirror of
https://github.com/ppy/osu.git
synced 2025-01-06 21:12:55 +08:00
Rename tests and add missing coverage
This commit is contained in:
parent
9090d13e05
commit
3485ef33a7
@ -26,19 +26,20 @@ namespace osu.Game.Rulesets.Osu.Tests
|
|||||||
[Resolved]
|
[Resolved]
|
||||||
private AudioManager audio { get; set; }
|
private AudioManager audio { get; set; }
|
||||||
|
|
||||||
[Test]
|
[TestCase(true)]
|
||||||
public void TestBeatmapComboColours()
|
[TestCase(false)]
|
||||||
|
public void TestBeatmapComboColours(bool customSkinColoursPresent)
|
||||||
{
|
{
|
||||||
ExposedPlayer player = null;
|
ExposedPlayer player = null;
|
||||||
|
|
||||||
AddStep("load coloured beatmap", () => player = loadBeatmap(false, true));
|
AddStep("load coloured beatmap", () => player = loadBeatmap(customSkinColoursPresent, true));
|
||||||
AddUntilStep("wait for player", () => player.IsLoaded);
|
AddUntilStep("wait for player", () => player.IsLoaded);
|
||||||
|
|
||||||
AddAssert("is beatmap skin colours", () => player.UsableComboColours.SequenceEqual(TestBeatmapSkin.Colours));
|
AddAssert("is beatmap skin colours", () => player.UsableComboColours.SequenceEqual(TestBeatmapSkin.Colours));
|
||||||
}
|
}
|
||||||
|
|
||||||
[Test]
|
[Test]
|
||||||
public void TestEmptyBeatmapComboColours()
|
public void TestBeatmapNoComboColours()
|
||||||
{
|
{
|
||||||
ExposedPlayer player = null;
|
ExposedPlayer player = null;
|
||||||
|
|
||||||
@ -49,7 +50,7 @@ namespace osu.Game.Rulesets.Osu.Tests
|
|||||||
}
|
}
|
||||||
|
|
||||||
[Test]
|
[Test]
|
||||||
public void TestEmptyBeatmapCustomSkinColours()
|
public void TestBeatmapNoComboColoursSkinOverride()
|
||||||
{
|
{
|
||||||
ExposedPlayer player = null;
|
ExposedPlayer player = null;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user