Esempio n. 1
0
        public void NextPlayerIsNullIfNobodyAskedWithNull()
        {
            //Arrange
            var seats = new SeatInfo[] { };

            //Act
            var res = seats.SeatOfPlayingPlayerNextTo(null);

            //Assert
            Assert.IsNull(res);
        }
Esempio n. 2
0
        public void NextPlayerIsNullIfNobodyAskedWithMeNotPlaying()
        {
            //Arrange
            var me = new SeatInfo {
                Player = new PlayerInfo()
                {
                    State = PlayerStateEnum.Joined
                }
            };
            var seats = new SeatInfo[] { };

            //Act
            var res = seats.SeatOfPlayingPlayerNextTo(me);

            //Assert
            Assert.IsNull(res);
        }