Exemplo n.º 1
0
        public void EmptySeatDoesntHavePlayerAllIn()
        {
            //Arrange
            var s = new SeatInfo();

            //Act
            var res = s.HasPlayerAllIn();

            //Assert
            Assert.AreEqual(false, res);
        }
Exemplo n.º 2
0
        public void SeatWithAllInPlayerHasPlayerAllIn()
        {
            //Arrange
            var s = new SeatInfo {
                Player = new PlayerInfo {
                    State = PlayerStateEnum.AllIn
                }
            };

            //Act
            var res = s.HasPlayerAllIn();

            //Assert
            Assert.AreEqual(true, res);
        }
Exemplo n.º 3
0
        public void SeatWithNonePlayerDoesntHavePlayerAllIn()
        {
            //Arrange
            var s = new SeatInfo {
                Player = new PlayerInfo {
                    State = PlayerStateEnum.None
                }
            };

            //Act
            var res = s.HasPlayerAllIn();

            //Assert
            Assert.AreEqual(false, res);
        }