public void DoesFindMedianInSortedArray()
        {
            var data   = new double[] { 1, 2, 3 };
            var median = MedianCalculator.median(data);

            Assert.Equal(2, median);
        }
        public void ReturnsTheOnlyElementAsMedian()
        {
            var data   = new double[] { 5.5 };
            var median = MedianCalculator.median(data);

            Assert.Equal(5.5, median);
        }
        public void DoesFindMedianInTwoElementArray()
        {
            var data   = new double[] { 10, 20 };
            var median = MedianCalculator.median(data);

            Assert.Equal(15, median);
        }
        public void AveragesOutMiddleNumbers()
        {
            var data   = new double[] { 1, 2, 3, 4 };
            var median = MedianCalculator.median(data);

            Assert.Equal(2.5, median);
        }