public void GetYGapTest(Kind kind, int[] expectedResults) { BlockUnit unit = kind.GetObject(); foreach (Directions dir in Enum.GetValues(typeof(Directions))) { int result = unit.GetYGap(dir); Assert.AreEqual(expectedResults[(int)dir], result, $"Kind:{kind},Direction:{dir},{unit}"); } }