public void GenerateCardsTest() { Logic target = new Logic(); // TODO: Initialize to an appropriate value List<Card> cards = target.GenerateCards(); Assert.AreEqual(81, cards.Count); }
public void LogicConstructorTest() { Logic target = new Logic(); Stopwatch w1 = new Stopwatch(); w1.Start(); List<Card> cards = target.GenerateCards(); w1.Stop(); Stopwatch w2 = new Stopwatch(); w2.Start(); HashSet<List<Card>> all_sets = target.FindSets(cards); Assert.AreEqual(1080, all_sets.Count); w2.Stop(); long gen = w1.ElapsedMilliseconds; long find = w2.ElapsedMilliseconds; }