public void TestUnique() { Lotto newLotto = new Lotto(); newLotto.generateNumbers(30, 10); bool allItemsUnique = newLotto.numbers.Distinct().Count() == newLotto.numbers.Count(); Assert.IsTrue(allItemsUnique); }
public void TestCollectionSize() { Lotto newLotto = new Lotto(); newLotto.generateNumbers(10, 30); if (newLotto.numbers.Count == 10) { Assert.IsTrue(true); } else { Assert.IsTrue(false); } }