public void MedianIntTest() { int[] values = { 1, 2, 3, 4, 5 }; var Median = StatMedian.Median(values); Assert.AreEqual(3, Median); }
public void MedianEvenDoubleTest() { double[] values = { 1.1, 2.4, 3.6, 4.8, 5.5, 6.6 }; var Median = StatMedian.Median(values); Assert.AreEqual(4.2, Median); }