Esempio n. 1
0
        public void AfterPlayerLeftThenJoinedStateIsWaitForBlinds()
        {
            //Arrange
            var nfo       = new ModularGameMock(new BlindModule(BlindTypeEnum.Blinds)).BlindsPosted();
            var curPlayer = nfo.CurrentPlayer;

            //Act
            nfo.Game.LeaveGame(curPlayer);
            nfo.Game.JoinGame(curPlayer);
            nfo.SitInGame(curPlayer);

            //Assert
            Assert.AreEqual(GameStateEnum.WaitForBlinds, nfo.Game.State, "The game should be back waiting for blinds since enough players are there to play");
        }