public void Should_be_return_exception_for_wrong_number_of_players() { var turn = TurnDtoFake.GetFilledWithWrongNumberOfPlayers(); var exception = Assert.Throws <Exception>(() => GameBusiness.RunTurn(turn)); exception.Message.Should().Be(ERROR_MESSAGE_NUMBER_PLAYERS_INCORRECT); }
public void Should_be_return_exception_for_wrong_choice_of_move() { var turn = TurnDtoFake.GetFilledWithWrongChoiceMove(); var exception = Assert.Throws <Exception>(() => GameBusiness.RunTurn(turn)); exception.Message.Should().Be(ERROR_MESSAGE_STRATEGY_ERROR); }
public void Should_be_return_the_winner_of_game() { var turn = TurnDtoFake.GetFilled(); var obtained = GameBusiness.RunTurn(turn); obtained.Should().BeEquivalentTo(Player); }