Example #1
0
        public void WorksForNotPrimeNumber()
        {
            bool result = Week3.IsPrimeNumber("10");

            Assert.AreEqual(false, result);
        }
Example #2
0
        public void WorksForPrimeNumber()
        {
            bool result = Week3.IsPrimeNumber("5");

            Assert.AreEqual(true, result);
        }
Example #3
0
 public void ThreeIsPrime()
 {
     Assert.AreEqual(true, Week3.IsPrimeNumber("3"));
 }
Example #4
0
 public void TwoIsPrime()
 {
     Assert.AreEqual(true, Week3.IsPrimeNumber("2"));
 }
Example #5
0
 public void FailsOutOfRage1To100()
 {
     bool result = Week3.IsPrimeNumber("101");
 }
Example #6
0
 public void FailsWithTextValue()
 {
     bool result = Week3.IsPrimeNumber("pepe");
 }