TestCaseImprovements

This commit is contained in:
EVAST9919 2019-06-10 03:54:15 +03:00
parent 9b8540d818
commit ff9dc18928

View File

@ -6,6 +6,8 @@ using osu.Game.Overlays.Toolbar;
using System;
using System.Collections.Generic;
using osu.Framework.Graphics;
using System.Linq;
using osu.Framework.MathUtils;
namespace osu.Game.Tests.Visual.UserInterface
{
@ -28,7 +30,11 @@ namespace osu.Game.Tests.Visual.UserInterface
AutoSizeAxes = Axes.X,
Height = Toolbar.HEIGHT,
Child = selector = new ToolbarRulesetSelector()
});
AddStep("Select random", () =>
{
selector.Current.Value = selector.Items.ElementAt(RNG.Next(selector.Items.Count()));
});
}
}