Switch method to statement body for better readability

Almost thought the method was not wrapped in an `AddStep`.
This commit is contained in:
Salman Ahmed 2022-07-30 09:58:17 +03:00
parent 0c125db197
commit ec1a7994cc
2 changed files with 38 additions and 32 deletions

View File

@ -263,7 +263,9 @@ namespace osu.Game.Tests.Visual.Gameplay
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();
@ -284,6 +286,7 @@ namespace osu.Game.Tests.Visual.Gameplay
Child = drawableRuleset
};
});
}
#region Ruleset

View File

@ -158,7 +158,9 @@ namespace osu.Game.Tests.Visual.Gameplay
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();
@ -173,6 +175,7 @@ namespace osu.Game.Tests.Visual.Gameplay
Child = drawableRuleset
};
});
}
#region Ruleset