public void TestAdjacencyCheck(int x1, int y1, int x2, int y2, bool expected) { Vector2Int loc1 = new Vector2Int(x1, y1); Vector2Int loc2 = new Vector2Int(x2, y2); Assert.AreEqual(LevelLayout.AreAdjacent(loc1, loc2), expected); }
public void TestAdjacencyCheck(int x1, int y1, int x2, int y2, bool expected) { Vector2Int loc1 = new Vector2Int(x1, y1); Vector2Int loc2 = new Vector2Int(x2, y2); Assert.AreEqual(LevelLayout.AreAdjacent(loc1, loc2), expected); }