Ejemplo n.º 1
0
 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));
 }
Ejemplo n.º 2
0
 public void SetGetObstacleByPoint()
 {
     _obstacleHolder = new ObstacleHolder(5, 5);
     _obstacleHolder.SetObstacle(1, 1, new Rock());
     Assert.IsInstanceOfType(_obstacleHolder.GetObstacle(1, 1), typeof(IObstacle));
 }