public void PairFound()
        {
            var checker = new PairChecker();
            var value   = checker.HandValue(_hands[1]);

            value.Should().Be(1.02121008m);
        }
        public void PairNotFound()
        {
            var checker = new PairChecker();

            for (var i = 0; i < 9; i++)
            {
                if (i != 1 && i != 2 && i != 3 && i != 6 && i != 7 && i != 4 && i != 8)
                {
                    var value = checker.HandValue(_hands[i]);
                    value.Should().Be(0, _hands[i].Select(c => c.ToString()).Aggregate((a, b) => a + " " + b));
                }
            }
        }
Example #3
0
        public void PairNotFound()
        {
            var checker = new PairChecker();

            for (var i = 0; i < 9; i++)
            {
                if (!new[] { 0, 1, 2, 3, 4, 6, 7, 10, 11, 12, 13, 14, 15 }.Contains(i))
                {
                    var value = checker.HandValue(_hands[i]);
                    value.Should().Be(0, _hands[i].Select(c => c.ToString()).Aggregate((a, b) => a + " " + b));
                }
            }
        }