Explicitly assert specific grid type

This commit is contained in:
OliBomby 2024-10-11 23:57:26 +02:00
parent 8b046f60f0
commit 9f73a45580
1 changed files with 1 additions and 0 deletions

View File

@ -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)", () =>
{ {