public void TestFindGames_Good()
        {
            _bridge.Login(LegalUserName, LegalPass);
            _bridge.CreateNewGame("Good Game", LegalUserName, LegalPlayer);
            _bridge.CreateNewGameWithPrefrences("Game Not", LegalUserName, LegalPlayer, "NoLimit", 1, 0, 4, 2, 9, false);
            var activeGames = _bridge.FindGames(LegalUserName);

            Assert.IsTrue(activeGames.Contains("Good Game"));
            Assert.IsFalse(activeGames.Contains("Game Not"));

            _bridge.LeaveGame(LegalUserName, "Good Game", LegalPlayer);
            _bridge.LeaveGame(LegalUserName, "Game Not", LegalPlayer);
        }
示例#2
0
        public IList FindGames(string username)
        {
            var s = _real != null?_real.FindGames(username) : new List <string>
            {
                "Good Game Name"
            };

            return(s);
        }