public void StraitFound()
        {
            var checker = new StraitChecker();
            var value   = checker.HandValue(_hands[4]);

            value.Should().Be(4.0908070605m);
        }
        public void WheelFound()
        {
            var checker = new StraitChecker();
            var value   = checker.HandValue(_hands[10]);

            value.Should().Be(4.0504030201m);
        }
        public void DetachedStraitFound()
        {
            var checker = new StraitChecker();
            var value   = checker.HandValue(_hands[11]);

            value.Should().Be(4.0807060504m);
        }
Example #4
0
        public void StraitFound3Wilds()
        {
            var checker = new StraitChecker();
            var value   = checker.HandValue(_hands[13]);

            value.Should().Be(4.0706050403m);
        }
        public void StraitNotFound()
        {
            var checker = new StraitChecker();

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

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