public void FindNthRoot_ArgumentOutOfRangeException(double number, int degree, double precision, double expected) { // Arrange // Act // Assert Assert.Throws <ArgumentOutOfRangeException>(() => Day2Tasks.FindNthRoot(number, degree, precision)); }
public double FindNthRootShouldReturnExpectedValue(double numberSource, int degree, double precision) { // Arrange // Act // Assert return(Day2Tasks.FindNthRoot(numberSource, degree, precision)); }