Beispiel #1
0
        public void EmptySeatDoesntHavePlayerAllIn()
        {
            //Arrange
            var s = new SeatInfo();

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

            //Assert
            Assert.AreEqual(false, res);
        }
Beispiel #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);
        }
Beispiel #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);
        }