Example #1
0
        public void TestNLessThan1()
        {
            Assert.AreEqual(0, AddFrom1ToN.Process_Recursively(-1));
            Assert.AreEqual(0, AddFrom1ToN.Process_Iteratively(-1));

            Assert.AreEqual(0, AddFrom1ToN.Process_Recursively(0));
            Assert.AreEqual(0, AddFrom1ToN.Process_Iteratively(0));
        }
Example #2
0
 public void TestNMoreThan1()
 {
     Assert.AreEqual(55, AddFrom1ToN.Process_Recursively(10));
     Assert.AreEqual(55, AddFrom1ToN.Process_Iteratively(10));
 }
Example #3
0
 public void TestNEqualsTo1()
 {
     Assert.AreEqual(1, AddFrom1ToN.Process_Recursively(1));
     Assert.AreEqual(1, AddFrom1ToN.Process_Iteratively(1));
 }