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:
parent
5241c999c1
commit
0211ae12ad
@ -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()
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user