Skip to content

Commit 66eeaf6

Browse files
cover empty cash flow exception
1 parent 08b70b9 commit 66eeaf6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Algorithms.Tests/Financial/PresentValueTests.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ public static void Present_Value_General_Tests(double discountRate,double[] cash
2222

2323

2424
[TestCase(-1.0, new[] { 10.0, 20.70, -293.0, 297.0 })]
25-
[TestCase(-1.0,new double[] {})]
25+
[TestCase(1.0,new double[] {})]
2626

2727
public static void Present_Value_Exception_Tests(double discountRate, double[] cashFlow)
2828
=> Assert.Throws<ArgumentException>(() => PresentValue.Calculate(discountRate, cashFlow.ToList()));

0 commit comments

Comments
 (0)