public void SimpleItemTest() { List <int> input = new List <int>() { 2, 1 }; var output = InversionCount.MergeSortInversions(input); input.Sort(); Assert.IsNotNull(output); }
public void BiggerTest() { List <int> input = new List <int>() { 1, 3, 7, 5, 2, 4, 6, 8 }; var output = InversionCount.MergeSortInversions(input); input.Sort(); Assert.IsNotNull(output); Assert.IsTrue(output.Inversions == 7); }