public void FindSqrtValueTest() { //Arrange double input = 9; double expected = 3; //Act double actual = FindSqrt.GetSqrt(input); //Assert Assert.AreEqual(expected, actual); }
public void ExceptionTest(double a, int n, double eps) { Assert.Throws <ArgumentException>(() => FindSqrt.FindNthRoot(a, n, eps)); }
public void Test(double a, int n, double eps, double expectedResult) { Assert.AreEqual(expectedResult, FindSqrt.FindNthRoot(a, n, eps), eps); }