public void Card_InvalidRankAndValidSuitProvided_FailureCardIsValidReturnsFalse() { // Arrange const CardRank rank = (CardRank)18; const CardSuit suit = CardSuit.Hearts; // Act var card = new Card(rank, suit); // Assert Assert.IsFalse(card.IsValid(card.Rank)); }
public void Card_ValidRankAndInvalidSuitProvided_FailureCardIsValidReturnsFalse() { // Arrange const CardRank rank = CardRank.Ace; const CardSuit suit = (CardSuit)100; // Act var card = new Card(rank, suit); // Assert Assert.IsFalse(card.IsValid(card.Suit)); }
public void Card_InvalidRankAndInvalidSuitProvided_FailureCardIsValidReturnsFalse() { // Arrange const CardRank rank = (CardRank)100; const CardSuit suit = (CardSuit)200; // Act var card = new Card(rank, suit); // Assert Assert.IsNotNull(card); Assert.IsFalse(card.IsValid(card)); }