示例#1
0
        //Test case #2 verify that returned list of prime factors is not empty
        public void HasPrimeFactors()
        {
            var repo = new PrimeNumberRepository();

            Assert.True(repo.GetPrimeFactorsOfNumber(178).Count > 0);
        }
示例#2
0
        //Test case #1 - Verify that we can't get prime number for 1
        public void Is1APrimeNumber()
        {
            var repo = new PrimeNumberRepository();

            Assert.True(repo.GetPrimeFactorsOfNumber(1).Count == 0);
        }