Add comment explaining test expectations

This commit is contained in:
Dean Herbert 2022-06-08 19:26:34 +09:00
parent 3d4d87bcb2
commit 6aa84425a2
1 changed files with 5 additions and 0 deletions

View File

@ -49,6 +49,11 @@ public async Task TestImportWithNoBeatmaps()
Assert.That(osu.CollectionManager.Collections.Count, Is.EqualTo(2)); Assert.That(osu.CollectionManager.Collections.Count, Is.EqualTo(2));
// Even with no beatmaps imported, collections are tracking the hashes and will continue to.
// In the future this whole mechanism will be replaced with having the collections in realm,
// but until that happens it makes rough sense that we want to track not-yet-imported beatmaps
// and have them associate with collections if/when they become available.
Assert.That(osu.CollectionManager.Collections[0].Name.Value, Is.EqualTo("First")); Assert.That(osu.CollectionManager.Collections[0].Name.Value, Is.EqualTo("First"));
Assert.That(osu.CollectionManager.Collections[0].Beatmaps.Count, Is.EqualTo(1)); Assert.That(osu.CollectionManager.Collections[0].Beatmaps.Count, Is.EqualTo(1));