1
0
mirror of https://github.com/ppy/osu.git synced 2024-11-14 15:17:27 +08:00

Add failing test case for crash on empty beatmap

This commit is contained in:
Bartłomiej Dach 2024-03-19 19:16:33 +01:00
parent 5241c999c1
commit 0211ae12ad
No known key found for this signature in database

View File

@ -55,6 +55,16 @@ namespace osu.Game.Tests.Editing.Checks
};
}
[Test]
public void TestEmptyBeatmap()
{
var context = getContext(new Beatmap<HitObject>());
var issues = check.Run(context).ToList();
Assert.That(issues, Has.Count.EqualTo(1));
Assert.That(issues.Single().Template is CheckUnusedAudioAtEnd.IssueTemplateUnusedAudioAtEnd);
}
[Test]
public void TestAudioNotFullyUsed()
{