public IActionResult ApproximatePi(int digits, int iterations)
 {
     return(Ok(_mathService.ApproximatePi(digits, iterations)));
 }
Example #2
0
        public void ApproximatePiTest(int digits, int iterations, string expected)
        {
            string actual = service.ApproximatePi(digits, iterations);

            Assert.Equal(expected, actual);
        }