예제 #1
0
 public void PlayerAddMove()
 {
     Player player = new Player("Ivan");
     player.AddMove();
     Assert.AreEqual(1, player.MovesCount);
 }
예제 #2
0
 public void PlayerToString()
 {
     Player player = new Player("Ivan");
     player.DetonatedMines = 12;
     player.AddDetonatedMines(1);
     player.AddMove();
     Assert.AreEqual("Player: Ivan, Detonated mines: 13, Moves: 1", player.ToString(), "Equals");
 }