Пример #1
0
 public void FindNthRoot_With_Not_Valid_Data(double number, int degree, double precision, double expected)
 => Assert.Throws <ArgumentOutOfRangeException>(() => AlgorithmsForTasks.FindNthRoot(number, degree, precision));
Пример #2
0
 public void FindNthRoot_With_Valid_Data(double number, int degree, double accuracy, double result)
 => Assert.AreEqual(AlgorithmsForTasks.FindNthRoot(number, degree, accuracy), result, accuracy);