mirror of
https://github.com/osukey/osukey.git
synced 2025-06-09 21:37:59 +09:00
Add failing test case
This commit is contained in:
parent
566c5310bf
commit
2df5fafea0
@ -82,12 +82,11 @@ namespace osu.Game.Tests.Gameplay
|
|||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Tests that a hitobject which provides a custom sample set of 2 retrieves the following samples from the user skin when the beatmap does not contain the sample:
|
/// Tests that a hitobject which provides a custom sample set of 2 retrieves the following samples from the user skin
|
||||||
/// normal-hitnormal2
|
/// (ignoring the custom sample set index) when the beatmap skin does not contain the sample:
|
||||||
/// normal-hitnormal
|
/// normal-hitnormal
|
||||||
/// hitnormal
|
/// hitnormal
|
||||||
/// </summary>
|
/// </summary>
|
||||||
[TestCase("normal-hitnormal2")]
|
|
||||||
[TestCase("normal-hitnormal")]
|
[TestCase("normal-hitnormal")]
|
||||||
[TestCase("hitnormal")]
|
[TestCase("hitnormal")]
|
||||||
public void TestDefaultCustomSampleFromUserSkinFallback(string expectedSample)
|
public void TestDefaultCustomSampleFromUserSkinFallback(string expectedSample)
|
||||||
@ -99,6 +98,23 @@ namespace osu.Game.Tests.Gameplay
|
|||||||
AssertUserLookup(expectedSample);
|
AssertUserLookup(expectedSample);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Tests that a hitobject which provides a custom sample set of 2 does not retrieve a normal-hitnormal2 sample from the user skin
|
||||||
|
/// if the beatmap skin does not contain the sample.
|
||||||
|
/// User skins in stable ignore the custom sample set index when performing lookups.
|
||||||
|
/// </summary>
|
||||||
|
[Test]
|
||||||
|
public void TestUserSkinLookupIgnoresSampleBank()
|
||||||
|
{
|
||||||
|
const string unwanted_sample = "normal-hitnormal2";
|
||||||
|
|
||||||
|
SetupSkins(string.Empty, unwanted_sample);
|
||||||
|
|
||||||
|
CreateTestWithBeatmap("hitobject-beatmap-custom-sample.osu");
|
||||||
|
|
||||||
|
AssertNoLookup(unwanted_sample);
|
||||||
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Tests that a hitobject which provides a sample file retrieves the sample file from the beatmap skin.
|
/// Tests that a hitobject which provides a sample file retrieves the sample file from the beatmap skin.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
@ -183,7 +199,7 @@ namespace osu.Game.Tests.Gameplay
|
|||||||
string[] expectedSamples =
|
string[] expectedSamples =
|
||||||
{
|
{
|
||||||
"normal-hitnormal2",
|
"normal-hitnormal2",
|
||||||
"normal-hitwhistle2"
|
"normal-hitwhistle" // user skin lookups ignore custom sample set index
|
||||||
};
|
};
|
||||||
|
|
||||||
SetupSkins(expectedSamples[0], expectedSamples[1]);
|
SetupSkins(expectedSamples[0], expectedSamples[1]);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user