Ejemplo n.º 1
0
        public void TestSimonsRule2(int expected, int n, int min, int max)
        {
            SimsonsRule SR = new SimsonsRule();

            double actual = SR.GetAreaUnderGraph2(n, min, max);

            Assert.AreEqual(expected, actual);
        }
Ejemplo n.º 2
0
        public void GetAreaUnderGraphUsingSimpsonsRuleCubic(int n, int min, int max, double expectedValue)
        {
            // Arrange

            // Act
            double actualValue = SimsonsRule.GetAreaUnderGraphUsingSimpsonsRuleCubic(n, min, max);

            // Assert
            Assert.AreEqual(expectedValue, actualValue);
        }