Fix TestSettingsMigration's usage of RecycleLocalStorage

This commit is contained in:
Dean Herbert
2021-08-18 16:23:02 +09:00
parent dc44cc0eb3
commit 2758a83d55
8 changed files with 37 additions and 23 deletions

View File

@ -10,6 +10,7 @@ using osu.Framework.Graphics;
using osu.Framework.Graphics.Shapes;
using osu.Framework.Graphics.Textures;
using osu.Framework.Platform;
using osu.Framework.Testing;
using osu.Game.Audio;
using osu.Game.Beatmaps;
using osu.Game.Configuration;
@ -88,25 +89,32 @@ namespace osu.Game.Tests.Visual.Navigation
[Resolved]
private OsuGameBase gameBase { get; set; }
[BackgroundDependencyLoader]
private void load(GameHost host)
{
game = new OsuGame();
game.SetHost(host);
[Resolved]
private GameHost host { get; set; }
Children = new Drawable[]
[SetUpSteps]
public void SetUpSteps()
{
AddStep("create game", () =>
{
new Box
game = new OsuGame();
game.SetHost(host);
Children = new Drawable[]
{
RelativeSizeAxes = Axes.Both,
Colour = Color4.Black,
},
game
};
new Box
{
RelativeSizeAxes = Axes.Both,
Colour = Color4.Black,
},
game
};
});
AddUntilStep("wait for load", () => game.IsLoaded);
}
[Test]
public void TestNullRulesetHandled()
{