public void Test_CompareAllHands()
        {
            var sut = new E054PokerHands();

            string[] lines = GetHandsFromFile();
            foreach (var line in lines)
            {
                sut.FirstPlayerWins(line);
            }
        }
        public void Solution()
        {
            /*
             *  How many hands does Player 1 win?
             */
            string[] lines = GetHandsFromFile();
            var      sut   = new E054PokerHands();

            Assert.Equal(376, sut.GetFirstPlayerWins(lines));

            /*
             *  Congratulations, the answer you gave to problem 54 is correct.
             *  You are the 31167th person to have solved this problem.
             */
        }
        public void Test1()
        {
            /*
             * 8C TS KC 9H 4S 7D 2S 5D 3S AC
             */
            string[] lines = GetHandsFromFile();

            var sut = new E054PokerHands();

            /* 8C TS KC 9H 4S  K high
             * 7D 2S 5D 3S AC  A high
             */
            Assert.False(sut.FirstPlayerWins(lines[0]));

            /*
             * 5C AD 5D AC 9C  2 pair
             * 7C 5H 8D TD KS  K hih
             */
            Assert.True(sut.FirstPlayerWins(lines[1]));
        }
        public void Test_RankPokerHand(string hand, PokerHandRanking expectedValue)
        {
            var sut = new E054PokerHands();

            Assert.Equal(expectedValue, sut.RankPokerHand(hand));
        }