Ejemplo n.º 1
0
 public void TestsIfScoreIsValidAfterMoveingThePLayer()
 {
     var player = new Player("Test");
     player.PositionCol = 3;
     player.PositionRow = 3;
     player.MoveRight();
     player.MoveRight();
     player.MoveRight();
     player.MoveUp();
     var expectedScore = 4;
     Assert.AreEqual(expectedScore, player.Score);
 }
Ejemplo n.º 2
0
 public void TestsPlayerMovementRightToChangeThePosition()
 {
     var player = new Player("Test");
     player.PositionCol = 3;
     player.PositionRow = 3;
     player.MoveRight();
     var expetedColPosition = 4;
     Assert.AreEqual(expetedColPosition, player.PositionCol);
 }