Update outdated test cases

This commit is contained in:
Salman Ahmed 2021-07-20 10:28:24 +03:00
parent 554652b033
commit a1001542f3

View File

@ -86,9 +86,8 @@ namespace osu.Game.Rulesets.Osu.Tests
[TestCase(false, false)] [TestCase(false, false)]
public void TestLegacyOffsetWithBeatmapColours(bool userHasCustomColours, bool useBeatmapSkin) public void TestLegacyOffsetWithBeatmapColours(bool userHasCustomColours, bool useBeatmapSkin)
{ {
TestBeatmap = new OsuCustomSkinWorkingBeatmap(audio, true, getHitCirclesWithLegacyOffsets()); PrepareBeatmap(() => new OsuCustomSkinWorkingBeatmap(audio, true, getHitCirclesWithLegacyOffsets()));
base.TestBeatmapComboColours(userHasCustomColours, useBeatmapSkin); ConfigureTest(useBeatmapSkin, true, userHasCustomColours);
assertCorrectObjectComboColours("is beatmap skin colours with legacy offsets applied", assertCorrectObjectComboColours("is beatmap skin colours with legacy offsets applied",
TestBeatmapSkin.Colours, TestBeatmapSkin.Colours,
(i, obj) => i + 1 + obj.LegacyBeatmapComboOffset); (i, obj) => i + 1 + obj.LegacyBeatmapComboOffset);
@ -98,9 +97,8 @@ namespace osu.Game.Rulesets.Osu.Tests
[TestCase(false)] [TestCase(false)]
public void TestLegacyOffsetWithIgnoredBeatmapColours(bool useBeatmapSkin) public void TestLegacyOffsetWithIgnoredBeatmapColours(bool useBeatmapSkin)
{ {
TestBeatmap = new OsuCustomSkinWorkingBeatmap(audio, true, getHitCirclesWithLegacyOffsets()); PrepareBeatmap(() => new OsuCustomSkinWorkingBeatmap(audio, true, getHitCirclesWithLegacyOffsets()));
base.TestBeatmapComboColoursOverride(useBeatmapSkin); ConfigureTest(useBeatmapSkin, false, true);
assertCorrectObjectComboColours("is user skin colours without legacy offsets applied", assertCorrectObjectComboColours("is user skin colours without legacy offsets applied",
TestSkin.Colours, TestSkin.Colours,
(i, _) => i + 1); (i, _) => i + 1);