public void CheckPosition() { int[,] array = new int[3, 3]; for (int i = 0; i < 3; i++) { for (int j = 0; j < 3; j++) { array[j, i] = 0; } } Player person = new Pacman(1, 1); Assert.IsTrue(person.CheckPosition(array, 0, 1)); array[2, 1] = 1; Player person1 = new Pacman(1, 1); Assert.IsFalse(person1.CheckPosition(array, 0, 1)); }