public void TestShuffleDeck() { Deck testDeck1 = new Deck(); testDeck1.Shuffle(); Deck testDeck2 = new Deck(); //TODO: There is a Chance that the shuffle for both will be the same and false fail this test. // Find a way to make sure that does not happen. Assert.IsFalse(testDeck1.Cards.SequenceEqual(testDeck2.Cards)); }
public void TestSortDeck() { Deck testDeck1 = new Deck(); testDeck1.Shuffle(); testDeck1.Sort(); Deck testDeck2 = new Deck(); testDeck2.Sort(); //Since I get to make up what sort order is, as long as it is consistaant the test should pass. Assert.IsTrue(testDeck1.Cards.SequenceEqual(testDeck2.Cards)); }
public ActionResult Shuffle() { Deck deck = new Deck(); deck.Shuffle(); return View("Index",deck); }
public ActionResult Shuffle(Deck deck) { deck.Shuffle(); return View("Index", deck); }