コード例 #1
0
        public void Test2()
        {
            var tuple = ProductOfConsecutiveFibNumbers.ProductFib(800);

            Assert.AreEqual(tuple.Item1, 34);
            Assert.AreEqual(tuple.Item2, 55);
            Assert.AreEqual(tuple.Item3, false);
        }
コード例 #2
0
        public void Test3()
        {
            var tuple = ProductOfConsecutiveFibNumbers.ProductFib(4895);

            Assert.AreEqual(tuple.Item1, 55);
            Assert.AreEqual(tuple.Item2, 89);
            Assert.AreEqual(tuple.Item3, true);
        }
コード例 #3
0
        public void Test1()
        {
            var tuple = ProductOfConsecutiveFibNumbers.ProductFib(714);

            Assert.AreEqual(tuple.Item1, 21);
            Assert.AreEqual(tuple.Item2, 34);
            Assert.AreEqual(tuple.Item3, true);
        }