Skip to content

Commit 9b6d9d5

Browse files
committed
Fix fork test ModelManagerPerformanceTest to use NUnit 4 constraint-based assertions
1 parent 9aed214 commit 9b6d9d5

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

osu.Game.Tests/Database/ModelManagerPerformanceTest.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ public void TestDeletePerformance()
3636
});
3737

3838
var items = realm.Run(r => r.All<BeatmapSetInfo>().ToList());
39-
Assert.AreEqual(count, items.Count);
39+
Assert.That(items.Count, Is.EqualTo(count));
4040

4141
var sw = Stopwatch.StartNew();
4242
manager.Delete(items);
@@ -46,7 +46,7 @@ public void TestDeletePerformance()
4646

4747
// Verify deletion
4848
int remaining = realm.Run(r => r.All<BeatmapSetInfo>().Count(s => !s.DeletePending));
49-
Assert.AreEqual(0, remaining);
49+
Assert.That(remaining, Is.EqualTo(0));
5050
});
5151
}
5252

@@ -72,7 +72,7 @@ public void TestUndeletePerformance()
7272
});
7373

7474
var items = realm.Run(r => r.All<BeatmapSetInfo>().ToList());
75-
Assert.AreEqual(count, items.Count);
75+
Assert.That(items.Count, Is.EqualTo(count));
7676

7777
var sw = Stopwatch.StartNew();
7878
manager.Undelete(items);
@@ -82,7 +82,7 @@ public void TestUndeletePerformance()
8282

8383
// Verify undeletion
8484
int remaining = realm.Run(r => r.All<BeatmapSetInfo>().Count(s => !s.DeletePending));
85-
Assert.AreEqual(count, remaining);
85+
Assert.That(remaining, Is.EqualTo(count));
8686
});
8787
}
8888

0 commit comments

Comments
 (0)