mirror of
https://github.com/osukey/osukey.git
synced 2025-07-01 16:29:58 +09:00
Replace dodgy SetUpSteps
overriding with usage of HasCustomSteps
This commit is contained in:
@ -39,10 +39,10 @@ namespace osu.Game.Tests.Visual
|
||||
base.SetUpSteps();
|
||||
|
||||
if (!HasCustomSteps)
|
||||
CreateTest(null);
|
||||
CreateTest();
|
||||
}
|
||||
|
||||
protected void CreateTest(Action action)
|
||||
protected void CreateTest([CanBeNull] Action action = null)
|
||||
{
|
||||
if (action != null && !HasCustomSteps)
|
||||
throw new InvalidOperationException($"Cannot add custom test steps without {nameof(HasCustomSteps)} being set.");
|
||||
|
Reference in New Issue
Block a user