예제 #1
0
 public void Median1()
 {
     double[] array = new double[] { 2, 4, 6, 8 };
     var Calculo = new Mycalculator.Calculations();
     double median = Calculo.Median(array);
     double truevalue = 5;
     Assert.Equal(truevalue, median);
 }
예제 #2
0
 public void Mean1()
 {
     double[] array = new double[] { 2, 4, 6, 8, 10, 15 };
     var Calculo = new Mycalculator.Calculations();
     double mean = Calculo.Mean(array);
     double truevalue = 7.5;
     Assert.Equal(truevalue, mean, 2);
 }