示例#1
0
        public void TestUnique()
        {
            Lotto newLotto = new Lotto();
            newLotto.generateNumbers(30, 10);

            bool allItemsUnique = newLotto.numbers.Distinct().Count() == newLotto.numbers.Count();

            Assert.IsTrue(allItemsUnique);
        }
示例#2
0
        public void TestCollectionSize()
        {
            Lotto newLotto = new Lotto();
            newLotto.generateNumbers(10, 30);

            if (newLotto.numbers.Count == 10)
            {
                Assert.IsTrue(true);
            }
            else
            {
                Assert.IsTrue(false);
            }

        }