Exemple #1
0
        public void AddRemovePlayers()
        {
            Roster roster  = new Roster();
            Player player1 = new Player("Tim", "Hines", "07786062333");
            Player player2 = new Player("Will", "Hearn", "07971323947");

            roster.AddPlayer(player1);
            roster.AddPlayer(player2);

            Assert.Equal(2, roster.AllPlayers().Count);

            roster.RemovePlayer(0);

            Assert.Equal(1, roster.AllPlayers().Count);
            Assert.Equal("Will", roster.GetPlayer(0).First_name);
        }