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); }
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); }