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)); }
public void TestNMoreThan1() { Assert.AreEqual(55, AddFrom1ToN.Process_Recursively(10)); Assert.AreEqual(55, AddFrom1ToN.Process_Iteratively(10)); }
public void TestNEqualsTo1() { Assert.AreEqual(1, AddFrom1ToN.Process_Recursively(1)); Assert.AreEqual(1, AddFrom1ToN.Process_Iteratively(1)); }