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)); }
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)); }
public void BasicStaTest() { Assert.Equal(13, BasicStatistic.FindMax(numbers)); Assert.Equal(1, BasicStatistic.FindMin(numbers)); Assert.Equal(6, BasicStatistic.CalculateAverage(numbers)); }