Beispiel #1
0
        public void RemovePlayerByName_FromEmptyLobbyShouldReturnZero()
        {
            var lobby = new LobbyClient();

            var result = lobby.RemovePlayerByName("Nonexistent Player");

            Assert.Equal(0, result);
        }
Beispiel #2
0
        public void RemovePlayerByName_ShoudlWork()
        {
            var lobby = new LobbyClient();

            lobby.Players.Add(new PlayerClient("Some Player"));

            var result = lobby.RemovePlayerByName("Some Player");

            Assert.Empty(lobby.Players);
            Assert.Equal(1, result);
        }