예제 #1
0
 public void Test_BasicStat()
 {
     int[] numbers = { 5, 2, 5, 77, 100, 31, 3, -13, 4, 0, -19 };
     Assert.Equal(100, BasicStatistic.FindMax(numbers));
     Assert.Equal(-19, BasicStatistic.FindMin(numbers));
     Assert.Equal(17, BasicStatistic.CalculateAverage(numbers));
 }
예제 #2
0
 public void tes_basic_statistic()
 {
     int[] numbers = { 5, 2, 5, 77, 100, 31, 3, -13, 4, 0, -19 };
     Assert.Equal(100, BasicStatistic.FindMax(numbers));
     Assert.Equal(-19, BasicStatistic.FindMin(numbers));
     Assert.Equal(17.73, BasicStatistic.CalculateAverage(numbers));
     Assert.Equal(195, BasicStatistic.CalculateTotal(numbers));
 }
예제 #3
0
 public void BasicStaTest()
 {
     Assert.Equal(13, BasicStatistic.FindMax(numbers));
     Assert.Equal(1, BasicStatistic.FindMin(numbers));
     Assert.Equal(6, BasicStatistic.CalculateAverage(numbers));
 }