Exemplo n.º 1
0
        public void TestGetJoinedLobbyNotJoined()
        {
            var lobbyService = new LobbyService();

            lobbyService.CreateLobby("apples", null);

            var lobby = lobbyService.GetJoinedLobby("2");

            Assert.Null(lobby);
        }
Exemplo n.º 2
0
        public void TestGetJoinedLobby()
        {
            var lobbyService = new LobbyService();
            var lobby        = lobbyService.CreateLobby("apples", null);

            lobby.AddPlayer("name", Color.Blue);

            var joinedLobby = lobbyService.GetJoinedLobby("name");

            Assert.NotNull(joinedLobby);
        }