public void Setup()
        {
            m_InfoOne = Substitute.For <IPlayerHandInformation>();
            m_InfoTwo = Substitute.For <IPlayerHandInformation>();
            m_Infos   = new[]
            {
                m_InfoOne,
                m_InfoTwo
            };
            m_Rank = new RankByCardIndex(); // todo use NSub...

            m_Sut = new HighCardRanking(m_Rank);
        }
Esempio n. 2
0
        public void Setup()
        {
            m_InfoOne = Substitute.For <IPlayerHandInformation>();
            m_InfoTwo = Substitute.For <IPlayerHandInformation>();
            m_Infos   = new[]
            {
                m_InfoOne,
                m_InfoTwo
            };

            m_First    = new FirstPairRanking();
            m_Second   = new SecondPairRanking();
            m_HighCard = new HighCardRanking(new RankByCardIndex());

            m_Sut = new TwoPairsRanking(m_First,
                                        m_Second,
                                        m_HighCard);
        }