Skip to content

Commit

Permalink
Add failing test case
Browse files Browse the repository at this point in the history
  • Loading branch information
bdach committed Mar 12, 2024
1 parent 301750f commit 961058f
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
Binary file not shown.
10 changes: 10 additions & 0 deletions osu.Game.Tests/Skins/IO/ImportSkinTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -173,6 +173,16 @@ public Task TestSameMetadataNameSameFolderName([Values] bool batchImport) => run
assertCorrectMetadata(import1, "name 1 [my custom skin 1]", "author 1", 1.0m, osu);
});

[Test]
public Task TestImportWithSubfolder() => runSkinTest(async osu =>
{
const string filename = "Archives/skin-with-subfolder-zip-entries.osk";
var import = await loadSkinIntoOsu(osu, new ImportTask(TestResources.OpenResource(filename), filename));
assertCorrectMetadata(import, $"Totally fully features skin [Real Skin with Real Features] [{filename[..^4]}]", "Unknown", 2.7m, osu);
Assert.That(import.PerformRead(r => r.Files.Count), Is.EqualTo(3));
});

#endregion

#region Cases where imports should be uniquely imported
Expand Down

0 comments on commit 961058f

Please sign in to comment.