public void DPSumThrowsForNegativeValues() { Action action1 = () => FibonacciNumbers.DPSum(-1); action1.ShouldThrow <ArgumentException>(); Action action2 = () => FibonacciNumbers.DPSum(-10); action2.ShouldThrow <ArgumentException>(); }
public void DPSumWorks(long n, long fibn) { FibonacciNumbers.DPSum(n).Should().Be(fibn); }
public void DPSumBaseCases() { FibonacciNumbers.DPSum(0).Should().Be(0); FibonacciNumbers.DPSum(1).Should().Be(1); }