public void TestInsertionSort()
 {
     int[] unsorted = new int[] { 5, 4, 3, 2, 1 };
     int[] sorted   = new int[] { 1, 2, 3, 4, 5 };
     System.Diagnostics.Debug.WriteLine(CoolFunctions.InsertionSort(unsorted).ToString());
     CollectionAssert.AreEqual(sorted, CoolFunctions.InsertionSort(unsorted));
 }
 public void TestIteratively()
 {
     int[] inputs  = new int[] { 5, 10, 11, 4 };               // From Koans
     int[] outputs = new int[] { 120, 3628800, 39916800, 24 }; // From Koans
     for (var i = 0; i < inputs.Length; i++)
     {
         Assert.AreEqual(outputs[i], CoolFunctions.iterfactorial(inputs[i]));
     }
 }
 public void TestInsertionSort()
 {
     int[] unsorted = new int[] { 5, 4, 3, 2, 1, };
     int[] sorted = new int[] { 1, 2, 3, 4, 5, };
     CollectionAssert.AreEqual(sorted, CoolFunctions.InsertionSort(unsorted));
    }