public void GetPossibleAnnounceShouldReturnNoAnnounceWhenKingIsPlayedButTheRespectiveQueenIsMissing() { IAnnounceValidator validator = new AnnounceValidator(); var announce = validator.GetPossibleAnnounce( this.playerCards, new Card(CardSuit.Spade, CardType.King), new Card(CardSuit.Heart, CardType.Ace)); Assert.AreEqual(Announce.None, announce); }
public void GetPossibleAnnounceShouldReturnFortyWhenQueenIsPlayedTheKingIsPresentAndTheTrumpIsTheSameSuit() { IAnnounceValidator validator = new AnnounceValidator(); var announce = validator.GetPossibleAnnounce( this.playerCards, new Card(CardSuit.Diamond, CardType.Queen), new Card(CardSuit.Diamond, CardType.Ace)); Assert.AreEqual(Announce.Forty, announce); }
public void GetPossibleAnnounceShouldReturnFalseWhenThePlayerIsNotFirst() { IAnnounceValidator validator = new AnnounceValidator(); var announce = validator.GetPossibleAnnounce( this.playerCards, new Card(CardSuit.Heart, CardType.King), new Card(CardSuit.Heart, CardType.Nine), false); Assert.AreEqual(Announce.None, announce); }
public void GetPossibleAnnounceShouldReturnNoAnnounceWhenNoKingOrQueenIsPlayed(CardType cardType) { IAnnounceValidator validator = new AnnounceValidator(); var announce = validator.GetPossibleAnnounce( this.playerCards, new Card(CardSuit.Club, cardType), new Card(CardSuit.Club, CardType.Ace)); Assert.AreEqual(Announce.None, announce); }
public void GetPossibleAnnounceShouldReturnNoAnnounceWhenGivenNullCard() { IAnnounceValidator validator = new AnnounceValidator(); var announce = validator.GetPossibleAnnounce(this.playerCards, null, new Card(CardSuit.Heart, CardType.Ace)); Assert.AreEqual(Announce.None, announce); }
public void GetPossibleAnnounceShouldReturnTwentyWhenQueenIsPlayedTheKingIsPresentAndTheTrumpIsDifferentSuit() { IAnnounceValidator validator = new AnnounceValidator(); var announce = validator.GetPossibleAnnounce( this.playerCards, new Card(CardSuit.Club, CardType.Queen), new Card(CardSuit.Heart, CardType.Ace)); Assert.AreEqual(Announce.Twenty, announce); }