public void DoMyHomework()
        {
            CountInversions calc = new CountInversions();

            SortedArray inversions = calc.WeekOneAssignment();

            Assert.IsTrue(inversions.Inversions > 0);
        }
        public void EvenMoreComplexTest()
        {
            int[] testArray = new[] {1001, 1, 100, 3, 5, 2, 4, 6, 7 };

            CountInversions calc = new CountInversions();

            SortedArray inversions = calc.CalculateInversions(testArray);

            Assert.AreEqual(inversions.Inversions, 17);
        }
        public void BasicTest()
        {
            int[] testArray = new[] {1, 3, 5, 2, 4, 6};

            CountInversions calc = new CountInversions();

            SortedArray inversions = calc.CalculateInversions(testArray);

            Assert.AreEqual(inversions.Inversions, 3);
        }