public void ReinvestedInternalReturnRateShouldThrowExceptionWhenFinancialRateIsNegative() { //Act var exception = Record.Exception(() => FinancialCalculations.ReinvestedInternalReturnRate(new[] { 1.2, 2 }, -1, 1.8)); //Assert exception.Should().NotBeNull(); }
public void ReinvestedInternalReturnRateShouldCalculatedWithoutError() { //ActSSS var exception = Record.Exception(() => FinancialCalculations.ReinvestedInternalReturnRate(new[] { -4.8, -20 }, 2.4, 1.8)); //Assert exception.Should().BeNull(); }