Beispiel #1
0
        public void GetAllPossibleHandsTest()
        {
            var actual =
                HandChecker.GetAllPossibleHands(CardUtil.GetCards("1H 2H 3H"), CardUtil.GetCards("1S 2S 3S"))
                .ToList();

            var expected = new List <IReadOnlyList <Card> >
            {
                CardUtil.GetCards("1H 2H 3H"),
                CardUtil.GetCards("1S 2H 3H"),
                CardUtil.GetCards("1H 1S 3H"),
                CardUtil.GetCards("1S 2S 3H"),
                CardUtil.GetCards("1H 2H 1S"),
                CardUtil.GetCards("1S 2H 2S"),
                CardUtil.GetCards("1H 1S 2S"),
                CardUtil.GetCards("1S 2S 3S"),
            };

            CollectionAssert.AreEqual(expected, actual);
        }