mirror of
https://github.com/ppy/osu.git
synced 2024-11-11 13:37:25 +08:00
Fix test nullability assertions
This commit is contained in:
parent
8a0c8f5fd8
commit
9c411c2250
@ -764,13 +764,14 @@ namespace osu.Game.Tests.Database
|
||||
// Second import matches first but contains one extra .osu file.
|
||||
var secondImport = (await importer.ImportAsUpdate(new ProgressNotification(), new ImportTask(pathOriginal), firstImport.Value)).FirstOrDefault();
|
||||
Assert.That(secondImport, Is.Not.Null);
|
||||
Debug.Assert(secondImport != null);
|
||||
|
||||
Assert.That(realm.Realm.All<BeatmapInfo>(), Has.Count.EqualTo(12));
|
||||
Assert.That(realm.Realm.All<BeatmapMetadata>(), Has.Count.EqualTo(12));
|
||||
Assert.That(realm.Realm.All<BeatmapSetInfo>(), Has.Count.EqualTo(1));
|
||||
|
||||
// check the newly "imported" beatmap is not the original.
|
||||
Assert.That(firstImport?.ID, Is.Not.EqualTo(secondImport?.ID));
|
||||
Assert.That(firstImport.ID, Is.Not.EqualTo(secondImport.ID));
|
||||
}
|
||||
finally
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user