mirror of
https://github.com/ppy/osu.git
synced 2025-01-28 10:22:56 +08:00
Add failing test for adding collection w/ name colliding w/\ default items
This commit is contained in:
parent
41f5a6e292
commit
be16e0e538
@ -166,6 +166,29 @@ namespace osu.Game.Tests.Visual.Collections
|
|||||||
})));
|
})));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
[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]
|
[Test]
|
||||||
public void TestRemoveCollectionViaButton()
|
public void TestRemoveCollectionViaButton()
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user