private static TrickPile CreateTrickPileWithSixClubs(FollowSuit sut) { var trickPile = new TrickPile(sut, Trump.NoTrump()); trickPile.Push(new Card(Stub.Ranks.Six, Stub.Suits.Clubs), PilePosition.Default); return(trickPile); }
public void Any_card_could_be_played_when_trick_pile_is_empty(FollowSuit sut) { var trickPile = new TrickPile(sut, Trump.NoTrump()); var hand = CreateHandWithCards(Stub.Suits.Clubs); var card = hand.CardsInPile[0]; var result = sut.Play(trickPile, hand, card); Assert.AreEqual(FollowSuitPlayResult.Played, result); }
public void Any_card_could_be_played_with_FollowSuit_None(int suit) { var sut = FollowSuit.None; var trickPile = new TrickPile(sut, Trump.NoTrump()); trickPile.Push(new Card(Stub.Ranks.Six, Stub.Suits.French[0]), PilePosition.Default); var hand = CreateHandWithCards(Stub.Suits.French[suit]); var card = hand.CardsInPile[0]; var result = sut.Play(trickPile, hand, card); Assert.AreEqual(FollowSuitPlayResult.Played, result); }