1
0
mirror of https://github.com/ppy/osu.git synced 2024-11-11 08:27:49 +08:00

Merge pull request #27167 from smoogipoo/fix-inspection

Prefer collection initializer over collection expression syntax
This commit is contained in:
Dan Balasescu 2024-02-14 17:58:40 +09:00 committed by GitHub
commit 3b8203a3ad
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -43,13 +43,13 @@ namespace osu.Game.Tests.Rulesets
AddStep("setup provider", () =>
{
var rulesetSkinProvider = new RulesetSkinProvidingContainer(Ruleset.Value.CreateInstance(), Beatmap.Value.Beatmap, Beatmap.Value.Skin);
rulesetSkinProvider.Add(requester = new SkinRequester());
requester = new SkinRequester();
requester.OnLoadAsync += () => textureOnLoad = requester.GetTexture("test-image");
Child = rulesetSkinProvider;
Child = new RulesetSkinProvidingContainer(Ruleset.Value.CreateInstance(), Beatmap.Value.Beatmap, Beatmap.Value.Skin)
{
requester
};
});
AddAssert("requester got correct initial texture", () => textureOnLoad != null);