Ejemplo n.º 1
0
        public void CalculateLarge()
        {
            var deviationCalculator = new DeviationCalculator();
            var suit = new List <double> {
                3, 5, 6, 7, 9, 12, 23, 86, 1, 23, 2, 5, 6, 9, 11, 21, 42, 24, 80, 93
            };

            double expectedValue = 28.2354;

            Assert.AreEqual(expectedValue, Math.Round(deviationCalculator.Calculate(suit), 4));
        }
Ejemplo n.º 2
0
        public void CalculateSimple()
        {
            var deviationCalculator = new DeviationCalculator();
            var suit = new List <double> {
                6, 2, 3, 1
            };

            double expectedValue = 1.8708;

            Assert.AreEqual(expectedValue, Math.Round(deviationCalculator.Calculate(suit), 4));
        }