Example #1
0
 public void TestFirstNegative()
 {
     // Extend your function to count negatively if the input was negative.
     CollectionAssert.AreEqual(new List <int> {
         -1, -2, -3, -4, -5
     }, RecursiveFunctions.FirstNNaturalNumbers(-5));
 }
Example #2
0
 public void TestFirstPositive()
 {
     CollectionAssert.AreEqual(new List <int> (), RecursiveFunctions.FirstNNaturalNumbers(0));
     CollectionAssert.AreEqual(new List <int> {
         1, 2, 3, 4, 5
     }, RecursiveFunctions.FirstNNaturalNumbers(5));
 }