mirror of
https://github.com/osukey/osukey.git
synced 2025-06-29 07:07:55 +09:00
Switch method to statement body for better readability
Almost thought the method was not wrapped in an `AddStep`.
This commit is contained in:
parent
0c125db197
commit
ec1a7994cc
@ -263,7 +263,9 @@ namespace osu.Game.Tests.Visual.Gameplay
|
|||||||
return beatmap;
|
return beatmap;
|
||||||
}
|
}
|
||||||
|
|
||||||
private void createTest(IBeatmap beatmap, Action<TestDrawableScrollingRuleset> overrideAction = null) => AddStep("create test", () =>
|
private void createTest(IBeatmap beatmap, Action<TestDrawableScrollingRuleset> overrideAction = null)
|
||||||
|
{
|
||||||
|
AddStep("create test", () =>
|
||||||
{
|
{
|
||||||
var ruleset = new TestScrollingRuleset();
|
var ruleset = new TestScrollingRuleset();
|
||||||
|
|
||||||
@ -284,6 +286,7 @@ namespace osu.Game.Tests.Visual.Gameplay
|
|||||||
Child = drawableRuleset
|
Child = drawableRuleset
|
||||||
};
|
};
|
||||||
});
|
});
|
||||||
|
}
|
||||||
|
|
||||||
#region Ruleset
|
#region Ruleset
|
||||||
|
|
||||||
|
@ -158,7 +158,9 @@ namespace osu.Game.Tests.Visual.Gameplay
|
|||||||
AddStep("clean up", () => drawableRuleset.NewResult -= onNewResult);
|
AddStep("clean up", () => drawableRuleset.NewResult -= onNewResult);
|
||||||
}
|
}
|
||||||
|
|
||||||
private void createTest(IBeatmap beatmap, int poolSize, Func<IFrameBasedClock> createClock = null) => AddStep("create test", () =>
|
private void createTest(IBeatmap beatmap, int poolSize, Func<IFrameBasedClock> createClock = null)
|
||||||
|
{
|
||||||
|
AddStep("create test", () =>
|
||||||
{
|
{
|
||||||
var ruleset = new TestPoolingRuleset();
|
var ruleset = new TestPoolingRuleset();
|
||||||
|
|
||||||
@ -173,6 +175,7 @@ namespace osu.Game.Tests.Visual.Gameplay
|
|||||||
Child = drawableRuleset
|
Child = drawableRuleset
|
||||||
};
|
};
|
||||||
});
|
});
|
||||||
|
}
|
||||||
|
|
||||||
#region Ruleset
|
#region Ruleset
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user