示例#1
0
        public void GetPlayerTurn_GivenNewGame_ShouldReturnBlue()
        {
            // arrange
            var lobby = new Domain.Entities.Lobby();
            // action
            var playerTurn = new TurnLogic().GetPlayerTurn(lobby);

            // assert

            playerTurn.ShouldBe(Domain.Enumerations.Colour.Blue);
        }
示例#2
0
        public void GetPlayerTurn_AfterOneRound_ShouldReturnRed()
        {
            // arrange
            var lobby = new Domain.Entities.Lobby();

            lobby.Rounds = new List <Round> {
                new Round()
            };

            // action
            var playerTurn = new TurnLogic().GetPlayerTurn(lobby);

            // assert
            playerTurn.ShouldBe(Domain.Enumerations.Colour.Red);
        }