public void PlayerAddDetonatedMines() { Player player = new Player("Ivan"); player.DetonatedMines = 12; player.AddDetonatedMines(1); Assert.AreEqual(13, player.DetonatedMines); }
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"); }