Add failing test case

This commit is contained in:
Bartłomiej Dach 2024-03-12 09:05:28 +01:00
parent 301750f77f
commit 961058f5c8
No known key found for this signature in database
2 changed files with 10 additions and 0 deletions

View File

@ -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