public void Iterative(ulong input, ulong expected)
        {
            var sut    = new FibonacciCalc();
            var actual = sut.Iterative(input);

            Assert.Equal(expected, actual);
        }
        public void FibonacciImperative(ulong n, ulong expected)
        {
            // Arrange
            var fib = new FibonacciCalc();

            // Act
            var result = fib.Iterative(n);

            // Assert
            Assert.Equal(expected, result);
        }
Beispiel #3
0
 public void Iterative(ulong n, ulong expected)
 {
     _calc.Iterative(n).Should().Be(expected);
 }