Exemplo n.º 1
0
 public void FindNthRootTests_WithWrongAccuracyLess0_ThrowArgumentOutOfRangeException()
 => Assert.Throws <ArgumentOutOfRangeException>(() => NumbersOperations.FindNthRoot(1, 10, -10));
Exemplo n.º 2
0
 public double FindNthRootTests(double number, int power, double accuracy)
 => NumbersOperations.FindNthRoot(number, power, accuracy);
Exemplo n.º 3
0
 public void FindNthRootTests_WithWrongPower_ThrowArgumentOutOfRangeException()
 => Assert.Throws <ArgumentOutOfRangeException>(() => NumbersOperations.FindNthRoot(1, -10, 0.001));
Exemplo n.º 4
0
 public void FindNthRootTests_WithNumberLess0AndSquareRoot_ThrowArgumentException()
 => Assert.Throws <ArgumentException>(() => NumbersOperations.FindNthRoot(-10, 2, 0.001));