Exemple #1
0
        public void Returns0ElementsWhenUserInputs0()
        {
            //Act
            var primeNumbers = prime.GeneratePrimeNumbers(0);

            //Assert
            Assert.AreEqual(primeNumbers.Count, 0);
        }
Exemple #2
0
        public void TestGenerateCorrectAmountOfPrimeNumbers()
        {
            var primes = PrimeNumbers.GeneratePrimeNumbers(10).ToList();

            Assert.AreEqual(10, primes.Count);
        }