public void RateShouldCalculatedWithoutError(short numberPeriods, double payment, double presentValue, double futureValue, DueDate due, double guess = 0) { //Arrange var rate = new Rate(); //Act var exception = Record.Exception(() => rate.CalculateRate(numberPeriods, payment, presentValue, futureValue, due, guess)); //Assert exception.Should().BeNull(); }