public void TestCard_shuffle() { bool IsShuffle = false; var mydeck = new CardDeck(); var mydeckTwo = new CardDeck(); mydeck.Shuffle(); for (int i = 0; i < mydeck.Count(); i++) { if (mydeck.ElementAt(i) != mydeckTwo.ElementAt(i)) { IsShuffle = true; break; } } Assert.IsTrue(IsShuffle); }
public void TestCardDeck() { var mydeck = new CardDeck(); Assert.AreEqual(52, mydeck.Count()); }