Ejemplo n.º 1
0
 public void TestMoveOn_Without_Board()
 {
     Ball ball = new Ball(2, 2);
     ball.MoveAt(1, 1);
     Assert.AreEqual(2, ball.CPoint.X);
     Assert.AreEqual(2, ball.CPoint.Y);
 }
Ejemplo n.º 2
0
 public void TestMoveOn_With_Board()
 {
     Ball ball = new Ball(1, 2);
     GameMap board = new GameMap(80, 10, 1, 1, new Point(40, 0), ball);
     ball.MoveAt(4, 4);
     Assert.AreEqual(4, ball.CPoint.X);
     Assert.AreEqual(4, ball.CPoint.Y);
 }
Ejemplo n.º 3
0
 public void TestMoveOn_With_Board_WrongY()
 {
     Ball ball = new Ball(1, 2);
     GameMap board = new GameMap(80, 20, 1, 1, new Point(40, 0), ball);
     ball.MoveAt(2, -3);
 }