1
0
mirror of https://github.com/ppy/osu.git synced 2025-01-19 14:23:14 +08:00

Update test to account for sort order

This commit is contained in:
Dean Herbert 2022-07-28 15:20:25 +09:00
parent ca68574473
commit 8ac886a247

View File

@ -253,9 +253,14 @@ namespace osu.Game.Tests.Visual.Collections
});
});
assertCollectionName(0, "1");
assertCollectionName(1, "1");
AddStep("change first collection name", () => Realm.Write(_ => first.Name = "First"));
assertCollectionName(0, "First");
// Item will have moved due to alphabetical sorting.
assertCollectionName(0, "2");
assertCollectionName(1, "First");
}
[Test]