1
0
mirror of https://github.com/ppy/osu.git synced 2024-12-14 09:32:55 +08:00

Add failing test case

This commit is contained in:
Bartłomiej Dach 2023-01-28 15:23:15 +01:00
parent a126c72a4f
commit 9bdb78791f
No known key found for this signature in database
2 changed files with 10 additions and 0 deletions

View File

@ -40,6 +40,16 @@ namespace osu.Game.Tests.Skins
AddAssert("sample is non-null", () => skin.GetSample(new SampleInfo(@"sample")) != null);
}
[Test]
public void TestRetrievalWithConflictingFilenames()
{
ISkin skin = null!;
AddStep("import skin", () => skin = importSkinFromArchives(@"conflicting-filenames-skin.osk"));
AddAssert("texture is non-null", () => skin.GetTexture(@"spinner-osu") != null);
AddAssert("sample is non-null", () => skin.GetSample(new SampleInfo(@"spinner-osu")) != null);
}
[Test]
public void TestSampleRetrievalOrder()
{