예제 #1
0
            public void WhenNoTwoOfClubsInHandExpectOnlyThreeOfClubsPlayable()
            {
                var playableCards = new TestEnclosure()
                                    .WithCardsInHand(Cards.Deck.ExceptCard(Cards.TwoOfClubs))
                                    .GetPlayableCards();

                Assert.AreEqual("3♣", playableCards);
            }
예제 #2
0
            public void WhenTwoOfClubsInHandExpectOnlyTwoOfClubsPlayable()
            {
                var playableCards = new TestEnclosure()
                                    .WithCardsInHand(Cards.Deck)
                                    .GetPlayableCards();

                Assert.AreEqual("2♣", playableCards);
            }
예제 #3
0
            public void HeartsPlayableWhenOnlyHearts()
            {
                var playableCards = new TestEnclosure()
                                    .Play(Cards.TwoOfClubs)
                                    .WithCardsInHand(Cards.Hearts)
                                    .GetPlayableCards();

                Assert.AreEqual("2♥,3♥,4♥,5♥,6♥,7♥,8♥,9♥,T♥,J♥,Q♥,K♥,A♥", playableCards);
            }
예제 #4
0
            public void OnlyQueenOfSpadesPlayableWhenOnlyQueenOfSpadesAndHearts()
            {
                var playableCards = new TestEnclosure()
                                    .Play(Cards.TwoOfClubs)
                                    .WithCardInHand(Cards.QueenOfSpades)
                                    .WithCardsInHand(Cards.Hearts.ExceptCard(Cards.AceOfHearts))
                                    .GetPlayableCards();

                Assert.AreEqual("Q♠", playableCards);
            }
예제 #5
0
            public void ExpectQueenOfSpadesNotUsuallyPlayable()
            {
                var playableCards = new TestEnclosure()
                                    .Play(Cards.TwoOfClubs)
                                    .WithCardInHand(Cards.NineOfDiamonds)
                                    .WithCardInHand(Cards.SixOfSpades)
                                    .WithCardInHand(Cards.QueenOfSpades)
                                    .GetPlayableCards();

                Assert.AreEqual("9♦,6♠", playableCards);
            }
예제 #6
0
            public void ExpectHeartsNotUsuallyPlayable()
            {
                var playableCards = new TestEnclosure()
                                    .Play(Cards.TwoOfClubs)
                                    .WithCardInHand(Cards.TenOfDiamonds)
                                    .WithCardInHand(Cards.FiveOfSpades)
                                    .WithCardsInHand(Cards.Hearts)
                                    .GetPlayableCards();

                Assert.AreEqual("T♦,5♠", playableCards);
            }
예제 #7
0
            public void ExpectOnlyClubsPlayableIfHasClubsInHand()
            {
                var playableCards = new TestEnclosure()
                                    .Play(Cards.TwoOfClubs)
                                    .WithCardInHand(Cards.EightOfClubs)
                                    .WithCardInHand(Cards.TenOfClubs)
                                    .WithCardInHand(Cards.TenOfDiamonds)
                                    .WithCardInHand(Cards.QueenOfSpades)
                                    .WithCardInHand(Cards.SevenOfHearts)
                                    .GetPlayableCards();

                Assert.AreEqual("8♣,T♣", playableCards);
            }