Fix misleading step name (and add comment as to its purpose)

This commit is contained in:
Dean Herbert 2020-09-25 12:25:50 +09:00
parent d602072ee3
commit 9846d87eb0
1 changed files with 4 additions and 1 deletions

View File

@ -32,7 +32,10 @@ public override void SetUpSteps()
[Test]
public void TestCreateNewBeatmap()
{
AddStep("add random hitobject", () => EditorBeatmap.Metadata.Title = Guid.NewGuid().ToString());
// if we save a beatmap with a hash collision, things fall over.
// probably needs a more solid resolution in the future but this will do for now.
AddStep("make new beatmap unique", () => EditorBeatmap.Metadata.Title = Guid.NewGuid().ToString());
AddStep("save beatmap", () => Editor.Save());
AddAssert("new beatmap persisted", () => EditorBeatmap.BeatmapInfo.ID > 0);
}