public void ConvertPreflop_Player1IsSmallBlind__SetsSequencesCorrectly() { RelativeRatioResult result = ConvertPreflopThreePlayersHand(); IConvertedPokerHand convHand = result.ConvertedHand; IConvertedPokerPlayer smallBlindPlayer = convHand[0]; IConvertedPokerPlayer bigBlindPlayer = convHand[1]; IConvertedPokerPlayer buttonPlayer = convHand[2]; var action1 = new ConvertedPokerActionWithId(buttonPlayer[Streets.PreFlop][0], buttonPlayer.Position); var action2 = new ConvertedPokerActionWithId( smallBlindPlayer[Streets.PreFlop][0], smallBlindPlayer.Position); var action3 = new ConvertedPokerActionWithId(bigBlindPlayer[Streets.PreFlop][0], bigBlindPlayer.Position); var action4 = new ConvertedPokerActionWithId(buttonPlayer[Streets.PreFlop][1], buttonPlayer.Position); var action5 = new ConvertedPokerActionWithId( smallBlindPlayer[Streets.PreFlop][1], smallBlindPlayer.Position); var action6 = new ConvertedPokerActionWithId(bigBlindPlayer[Streets.PreFlop][1], bigBlindPlayer.Position); IConvertedPokerRound expectedPreflopSequence = new ConvertedPokerRound() .Add(action1) .Add(action2) .Add(action3) .Add(action4) .Add(action5) .Add(action6); Assert.That(expectedPreflopSequence, Is.EqualTo(convHand.Sequences[(int)Streets.PreFlop])); }
public void ConvertPreflop_Player1IsSmallBlind_CalculatesButtonsRatio1Correctly() { RelativeRatioResult result = ConvertPreflopThreePlayersHand(); Assert.That(result.Player3FirstRound[0].Ratio, Is.EqualTo(result.RelativeRatio1)); }
public void ConvertPreflop_Player1IsSmallBlind_SetsBigBlindsSecondActionToFold() { RelativeRatioResult result = ConvertPreflopThreePlayersHand(); Assert.That(result.Player2FirstRound[1].What, Is.EqualTo(ActionTypes.F)); }
public void ConvertFlop_Player1IsSmallBlind_CalculatesSmallBlindsRatio2Correctly() { RelativeRatioResult result = ConvertPreflopThreePlayersHand(); Assert.That(result.Player1FlopRound[1].Ratio, Is.EqualTo(result.RelativeRatio4)); }