public void TestContainsFaceValue() { DeckOfCards cards = new DeckOfCards(); cards.InitialiseCards(); int index = 0; foreach (Card c in cards.GetCardEnumerator()) { Assert.IsTrue(cards.ContainsFaceValue(this.completeDeck[index++].faceValue)); } List <Card> tinyOnlyTwoFaceValueListofCards = new List <Card>(); tinyOnlyTwoFaceValueListofCards.Add(new Card(Suit.Clubs, FaceValue.Two)); DeckOfCards tinyTwoDeck = new DeckOfCards(tinyOnlyTwoFaceValueListofCards); foreach (Card completeDeckCard in this.completeDeck) { if (completeDeckCard.faceValue != FaceValue.Two) { Assert.IsFalse(tinyTwoDeck.ContainsFaceValue(completeDeckCard.faceValue)); } } }