Пример #1
0
 public void FindNthRoot_ArgumentOutOfRangeException(double number, int degree, double precision, double expected)
 {
     // Arrange
     // Act
     // Assert
     Assert.Throws <ArgumentOutOfRangeException>(() => Day2Tasks.FindNthRoot(number, degree, precision));
 }
Пример #2
0
 public double FindNthRootShouldReturnExpectedValue(double numberSource, int degree, double precision)
 {
     // Arrange
     // Act
     // Assert
     return(Day2Tasks.FindNthRoot(numberSource, degree, precision));
 }