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:
commit
3b8203a3ad
@ -43,13 +43,13 @@ namespace osu.Game.Tests.Rulesets
|
|||||||
|
|
||||||
AddStep("setup provider", () =>
|
AddStep("setup provider", () =>
|
||||||
{
|
{
|
||||||
var rulesetSkinProvider = new RulesetSkinProvidingContainer(Ruleset.Value.CreateInstance(), Beatmap.Value.Beatmap, Beatmap.Value.Skin);
|
requester = new SkinRequester();
|
||||||
|
|
||||||
rulesetSkinProvider.Add(requester = new SkinRequester());
|
|
||||||
|
|
||||||
requester.OnLoadAsync += () => textureOnLoad = requester.GetTexture("test-image");
|
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);
|
AddAssert("requester got correct initial texture", () => textureOnLoad != null);
|
||||||
|
Loading…
Reference in New Issue
Block a user