コード例 #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);
        }