public void DetermineAvailableActions_ShouldReturnFold_WhenPlayerHasInsufficientChips() { // Arrange var expected = new[] { PlayerAction.Fold, }; var player = new Player() { ChipCount = 0 }; var pot = new Pot(); pot.Bet(1); // Act var actual = _sut.DetermineAvailableActions(player, pot); // Assert actual.Should().BeEquivalentTo(expected); }
public void DetermineAvailableActions_ShouldReturnCallFoldRaise_WhenFirstRoundFirstPlayerHasEnoughChips() { // Arrange var expected = new[] { PlayerAction.Call, PlayerAction.Fold, PlayerAction.Raise }; var player = new Player() { ChipCount = 2 }; var pot = new Pot(); pot.Bet(1); // Act var actual = _sut.DetermineAvailableActions(player, pot); // Assert actual.Should().BeEquivalentTo(expected); }