public IActionResult ApproximatePi(int digits, int iterations) { return(Ok(_mathService.ApproximatePi(digits, iterations))); }
public void ApproximatePiTest(int digits, int iterations, string expected) { string actual = service.ApproximatePi(digits, iterations); Assert.Equal(expected, actual); }