public void ArraySort4MergeSortSimpleCompleteTestEmptyList() { var nums = new List <int>(); ArraySort4MergeSortSimpleComplete.Sort(nums); var numsResult = new List <int>(); CollectionAssert.AreEqual(nums, numsResult); }
public void ArraySort4MergeSortSimpleCompleteTestNullList() { try { ArraySort4MergeSortSimpleComplete.Sort(null); } catch { Assert.IsTrue(true); return; } Assert.Fail(); }
public void ArraySor4MergeSortSimpleCompleteTestAlmostAlreadySorted() { var nums = new List <int> { 3, 5, 7, 7, 8, 38, 23, 56 }; ArraySort4MergeSortSimpleComplete.Sort(nums); var numsResult = new List <int> { 3, 5, 7, 7, 8, 23, 38, 56 }; CollectionAssert.AreEqual(nums, numsResult); }
public void ArraySort4MergeSortSimpleCompleteTestTwoElements() { var nums = new List <int> { 5, 3 }; ArraySort4MergeSortSimpleComplete.Sort(nums); var numsResult = new List <int> { 3, 5 }; CollectionAssert.AreEqual(nums, numsResult); }