public void TestGetPlayerName()
        {
            MinesweeperPlayer player = new MinesweeperPlayer("Koko"); //?
            string expected = "Koko";
            string current = player.Name;

            Assert.AreEqual(expected, current);
        }
 public void TestPlayerNullName()
 {
     MinesweeperPlayer player = new MinesweeperPlayer();
 }
 public void TestPlayerCompareWithNonPlayerObject()
 {
     MinesweeperPlayer firstPlayer = new MinesweeperPlayer();
     object secondPlayer = "some player";
     Assert.AreEqual(firstPlayer.CompareTo(secondPlayer)); //?
 }
        /// <summary>
        /// The game view on add player event.
        /// </summary>
        /// <param name="sender">
        /// The sender.
        /// </param>
        /// <param name="eventArgs">
        /// The event args.
        /// </param>
        private void GameViewOnAddPlayerEvent(object sender, EventArgs eventArgs)
        {
            var args = (MinesweeperAddPlayerEventArgs)eventArgs;
            var player = new MinesweeperPlayer { Name = args.PlayerName, Time = this.secondsPassed, Type = this.type };

               this.players.Add(player);
               MinesweeperGameData.Save(this.players, PlayersFilename);
        }