public void NetPresentValueShouldThrowExceptionWithNullParameters() { //Act var exception = Record.Exception(() => FinancialCalculations.NetPresentValue(1.4, null)); //Assert exception.Should().NotBeNull(); }
public void NetPresentValueShouldCalculatedWithoutError() { //Act var exception = Record.Exception(() => FinancialCalculations.NetPresentValue(1.4, new[] { 1.2, 2 })); //Assert exception.Should().BeNull(); }