Example #1
0
        public void CalcIntervalErrorTest()
        {
            // Arrang
            int    group = -1;
            double ef    = 3.0;

            // Act
            var ex = Assert.Throws <ArgumentOutOfRangeException>(() => AlgorithmSM.CalcInterval(group, ef));

            // Assert
            Assert.Contains("The number of repetitions must be 0 or higher", ex.Message);
        }
Example #2
0
        public void CalcIntervalTest()
        {
            // Arrang
            int    group = 1;
            double ef    = 3.0;

            // Act
            double res = AlgorithmSM.CalcInterval(group, ef);

            // Assert
            Assert.Equal(6, res);
        }