public double DoCalculationTest(double number, int degree, double precision) { // arrange var findNthRootObj = new FindNthRoot(); // act + assert return(findNthRootObj.DoCalculation(number, degree, precision)); }
public void doCalculationTest_Number_Degree_Precision_ArgumentOutOfRangeException (double number, int degree, double precision) { // arrange var findNthRootObj = new FindNthRoot(); // act + assert Assert.Throws <ArgumentOutOfRangeException>( () => findNthRootObj.DoCalculation(number, degree, precision)); }