public void WhenNoTwoOfClubsInHandExpectOnlyThreeOfClubsPlayable() { var playableCards = new TestEnclosure() .WithCardsInHand(Cards.Deck.ExceptCard(Cards.TwoOfClubs)) .GetPlayableCards(); Assert.AreEqual("3♣", playableCards); }
public void WhenTwoOfClubsInHandExpectOnlyTwoOfClubsPlayable() { var playableCards = new TestEnclosure() .WithCardsInHand(Cards.Deck) .GetPlayableCards(); Assert.AreEqual("2♣", playableCards); }
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); }
public void OnlyQueenOfSpadesPlayableWhenOnlyQueenOfSpadesAndHearts() { var playableCards = new TestEnclosure() .Play(Cards.TwoOfClubs) .WithCardInHand(Cards.QueenOfSpades) .WithCardsInHand(Cards.Hearts.ExceptCard(Cards.AceOfHearts)) .GetPlayableCards(); Assert.AreEqual("Q♠", playableCards); }
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); }
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); }
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); }