Exemplo n.º 1
0
        public void DPSumThrowsForNegativeValues()
        {
            Action action1 = () => FibonacciNumbers.DPSum(-1);

            action1.ShouldThrow <ArgumentException>();
            Action action2 = () => FibonacciNumbers.DPSum(-10);

            action2.ShouldThrow <ArgumentException>();
        }
Exemplo n.º 2
0
 public void DPSumWorks(long n, long fibn)
 {
     FibonacciNumbers.DPSum(n).Should().Be(fibn);
 }
Exemplo n.º 3
0
 public void DPSumBaseCases()
 {
     FibonacciNumbers.DPSum(0).Should().Be(0);
     FibonacciNumbers.DPSum(1).Should().Be(1);
 }