Ejemplo n.º 1
0
        public void Flush_With_High_Fifth_Kicker_Will_Beat_Same_Flush_With_Lower_Kicker()
        {
            var tieBreaker = new FlushTieBreaker();

            var handOne = HandBuilder.FlushAceHighTwoLow();
            var handTwo = HandBuilder.FlushAceHighThreeLow();

            var result = tieBreaker.DetermineStrongestHand(handOne, handTwo);

            Assert.That(result.Equals(handTwo));
        }
Ejemplo n.º 2
0
        public void Flush_With_Same_Hand_Should_Draw()
        {
            var tieBreaker = new FlushTieBreaker();

            var handOne = HandBuilder.FlushSevenHigh();
            var handTwo = HandBuilder.FlushSevenHigh();

            var result = tieBreaker.DetermineStrongestHand(handTwo, handOne);

            Assert.IsNull(result);
        }
Ejemplo n.º 3
0
        public void Flush_With_Highest_Card_Should_Win()
        {
            var tieBreaker = new FlushTieBreaker();

            var handOne = HandBuilder.FlushSevenHigh();
            var handTwo = HandBuilder.FlushAceHighNineLow();

            var result = tieBreaker.DetermineStrongestHand(handTwo, handOne);

            Assert.That(result.Equals(handTwo));
        }