mirror of https://github.com/ppy/osu
Explicitly assert specific grid type
This commit is contained in:
parent
8b046f60f0
commit
9f73a45580
|
@ -130,6 +130,7 @@ public void TestGridSnapMomentaryToggle()
|
||||||
|
|
||||||
private void gridActive<T>(bool active) where T : PositionSnapGrid
|
private void gridActive<T>(bool active) where T : PositionSnapGrid
|
||||||
{
|
{
|
||||||
|
AddAssert($"grid type is {typeof(T).Name}", () => this.ChildrenOfType<T>().Any());
|
||||||
AddStep("choose placement tool", () => InputManager.Key(Key.Number2));
|
AddStep("choose placement tool", () => InputManager.Key(Key.Number2));
|
||||||
AddStep("move cursor to spacing + (1, 1)", () =>
|
AddStep("move cursor to spacing + (1, 1)", () =>
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue