Add failing test for adding collection w/ name colliding w/\ default items

This commit is contained in:
Bartłomiej Dach 2023-12-18 12:47:42 +01:00
parent 41f5a6e292
commit be16e0e538
No known key found for this signature in database
1 changed files with 23 additions and 0 deletions

View File

@ -166,6 +166,29 @@ public void TestCollectionNameCollisions()
})));
}
[Test]
public void TestCollectionNameCollisionsWithBuiltInItems()
{
AddStep("add dropdown", () =>
{
Add(new CollectionDropdown
{
Anchor = Anchor.TopRight,
Origin = Anchor.TopRight,
RelativeSizeAxes = Axes.X,
Width = 0.4f,
});
});
AddStep("add two collections which collide with default items", () => Realm.Write(r => r.Add(new[]
{
new BeatmapCollection(name: "All beatmaps"),
new BeatmapCollection(name: "Manage collections...")
{
BeatmapMD5Hashes = { beatmapManager.GetAllUsableBeatmapSets().First().Beatmaps[0].MD5Hash }
},
})));
}
[Test]
public void TestRemoveCollectionViaButton()
{