Exemplo n.º 1
0
        public double DoCalculationTest(double number, int degree, double precision)
        {
            // arrange
            var findNthRootObj = new FindNthRoot();

            // act + assert
            return(findNthRootObj.DoCalculation(number, degree, precision));
        }
Exemplo n.º 2
0
        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));
        }