mirror of
https://github.com/ppy/osu.git
synced 2025-01-12 23:12:56 +08:00
Use constraint to improve assertion message
This commit is contained in:
parent
f3cd3d7d3b
commit
33a81d8181
@ -209,7 +209,7 @@ namespace osu.Game.Tests.Visual.Navigation
|
||||
AddStep("Close editor while loading", () => Game.ScreenStack.CurrentScreen.Exit());
|
||||
|
||||
AddUntilStep("Wait for menu", () => Game.ScreenStack.CurrentScreen is MainMenu);
|
||||
AddAssert("Check no new beatmaps were made", () => allBeatmapSets().SequenceEqual(beatmapSets));
|
||||
AddAssert("Check no new beatmaps were made", allBeatmapSets, () => Is.EquivalentTo(beatmapSets));
|
||||
|
||||
BeatmapSetInfo[] allBeatmapSets() => Game.Realm.Run(realm => realm.All<BeatmapSetInfo>().Where(x => !x.DeletePending).ToArray());
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user