public void SetGetObstacleByCoords() { _obstacleHolder = new ObstacleHolder(5, 5); _obstacleHolder.SetObstacle(new Point(2, 2), new Rock()); Assert.IsInstanceOfType(_obstacleHolder.GetObstacle(new Point(2, 2)), typeof(IObstacle)); }
public void SetGetObstacleByPoint() { _obstacleHolder = new ObstacleHolder(5, 5); _obstacleHolder.SetObstacle(1, 1, new Rock()); Assert.IsInstanceOfType(_obstacleHolder.GetObstacle(1, 1), typeof(IObstacle)); }