mirror of
https://github.com/ppy/osu.git
synced 2024-11-11 11:37:28 +08:00
Add failing assert for seasonal background equality
This commit is contained in:
parent
81c43bcf19
commit
30703d518c
@ -161,15 +161,18 @@ namespace osu.Game.Tests.Visual.Background
|
||||
|
||||
private void loadNextBackground()
|
||||
{
|
||||
SeasonalBackground previousBackground = null;
|
||||
SeasonalBackground background = null;
|
||||
|
||||
AddStep("create next background", () =>
|
||||
{
|
||||
previousBackground = (SeasonalBackground)backgroundContainer.SingleOrDefault();
|
||||
background = backgroundLoader.LoadNextBackground();
|
||||
LoadComponentAsync(background, bg => backgroundContainer.Child = bg);
|
||||
});
|
||||
|
||||
AddUntilStep("background loaded", () => background.IsLoaded);
|
||||
AddAssert("background is different", () => !background.Equals(previousBackground));
|
||||
}
|
||||
|
||||
private void assertAnyBackground()
|
||||
|
Loading…
Reference in New Issue
Block a user