public void TestGameFull_Good() { //login 2 players _bridge.Login(LegalUserName, LegalPass); _bridge.Login(LegalUserName + "1", LegalPass); //create and join to players to a game _bridge.CreateNewGame(LegalRoomName, LegalUserName, LegalPlayer); _bridge.JoinGame(LegalUserName + "1", LegalRoomName, LegalPlayer + "1"); //play the game-round 1 _bridge.StartGame(LegalRoomName); Assert.IsTrue(_bridge.RaiseInGame(50, LegalRoomName, LegalPlayer)); Assert.IsTrue(_bridge.CallInGame(LegalRoomName, LegalPlayer + "1")); //round 2-afterflop Assert.IsTrue(_bridge.RaiseInGame(50, LegalRoomName, LegalPlayer)); Assert.IsTrue(_bridge.CallInGame(LegalRoomName, LegalPlayer + "1")); //round 3-afterturn Assert.IsTrue(_bridge.RaiseInGame(50, LegalRoomName, LegalPlayer)); Assert.IsTrue(_bridge.CallInGame(LegalRoomName, LegalPlayer + "1")); //round 4-afterriver Assert.IsTrue(_bridge.FoldInGame(LegalRoomName, LegalPlayer)); _bridge.LeaveGame(LegalUserName, LegalRoomName, LegalPlayer); _bridge.LeaveGame(LegalUserName + "1", LegalRoomName, LegalPlayer + "1"); }
public bool FoldInGame(string gameName, string playerName) { return(_real == null || _real.FoldInGame(gameName, playerName)); }