예제 #1
0
        public void GetMedianDoubleList_Test()
        {
            double result = Median.GetMedian(doubleTestList);

            Assert.AreEqual(2.5, result);
        }
 public static void RunExample()
 {
     double[] a = new double[] { 4, 2, 6, 3, 5, 6, 1, 10, 10, 11, 32, 12 };
     Console.WriteLine("Median: {0}", Median.GetMedian(a));
 }
예제 #3
0
        public void GetMedianDoubleArray_Test()
        {
            double result = Median.GetMedian(doubleTestArray);

            Assert.AreEqual(2.5, result);
        }