Beispiel #1
0
        public void TestFibonacciTabulation(int upto, int expected)
        {
            var sut    = new GfgFibonacci();
            int actual = sut.GetFibonacciUptoUsingTabulation(upto);

            Assert.Equal(expected, actual);
        }
Beispiel #2
0
        public void TestFibonacciMemoization(int upto, int expected)
        {
            var sut    = new GfgFibonacci();
            int actual = sut.GetFibonacciUptoUsingRecursiveMemoization(upto);

            Assert.Equal(expected, actual);
        }