Пример #1
0
        public void MeanTest()
        {
            StatsCalc sc = new StatsCalc();

            decimal[] dataPoints = { 1M, 2M, 3M };
            Assert.AreEqual(2, sc.Mean(dataPoints));
        }
Пример #2
0
        public void MeanTest()
        {
            decimal[] DataPoints = { 1M, 2M };
            StatsCalc statsCalc  = new StatsCalc();
            var       result     = statsCalc.Mean(DataPoints);

            Assert.AreEqual(1.5M, result);
        }