コード例 #1
0
        public void ClimbStairsTest()
        {
            var testp = new ArrayQ();

            Assert.AreEqual(1, testp.ClimbStairs(1));
            Assert.AreEqual(2, testp.ClimbStairs(2));
            Assert.AreEqual(3, testp.ClimbStairs(3));
            Assert.AreEqual(5, testp.ClimbStairs(4));
            Assert.AreEqual(8, testp.ClimbStairs(5));
            Assert.AreEqual(13, testp.ClimbStairs(6));
            Assert.AreEqual(21, testp.ClimbStairs(7));
            Assert.AreEqual(34, testp.ClimbStairs(8));
            Assert.AreEqual(55, testp.ClimbStairs(9));
            Assert.AreEqual(89, testp.ClimbStairs(10));
        }