예제 #1
0
        public void Straight_Flush_Should_Not_Contain_Incorrect_Sequence_Of_Cards()
        {
            var analyser = new StraightFlushAnalyser();

            var result = analyser.IsHand(HandBuilder.HighCardHand());

            Assert.IsFalse(result);
        }
예제 #2
0
        public void Straight_Flush_Should_Contain_Cards_Of_The_Same_Suit()
        {
            var analyser = new StraightFlushAnalyser();

            var result = analyser.IsHand(HandBuilder.StraightFlushLow());

            Assert.IsTrue(result);
        }
예제 #3
0
        public void Straight_Flush_Should_Contain_Correct_Sequence_Of_Cards()
        {
            var analyser = new StraightFlushAnalyser();

            var result = analyser.IsHand(HandBuilder.StraightFlushLow());

            Assert.IsTrue(result);
        }
예제 #4
0
        public void Straight_Flush_Should_Allow_Ace_To_Be_Low()
        {
            var analyser = new StraightFlushAnalyser();

            var result = analyser.IsHand(HandBuilder.StraightFlushWithAceLow());

            Assert.IsTrue(result);
        }