Exemplo n.º 1
0
        public void TwoPairFound()
        {
            var checker = new TwoPairChecker();
            var value   = checker.HandValue(_hands[2]);

            value.Should().Be(2.121005m);
        }
Exemplo n.º 2
0
        public void TwoPairNotFound()
        {
            var checker = new TwoPairChecker();

            for (var i = 0; i < 9; i++)
            {
                if (i != 2 && i != 6 && i != 7)
                {
                    var value = checker.HandValue(_hands[i]);
                    value.Should().Be(0, _hands[i].Select(c => c.ToString()).Aggregate((a, b) => a + " " + b));
                }
            }
        }
Exemplo n.º 3
0
        public void TwoPairNotFound()
        {
            var checker = new TwoPairChecker();

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