示例#1
0
        public void ValidInput()
        {
            var fc  = new SlowFiboCaculator();
            var res = fc.CalcNext(new BigInteger(233).ToByteArray());

            Assert.AreEqual(new BigInteger(377), new BigInteger(res));
        }
示例#2
0
        public void ZeroInput()
        {
            var fc  = new SlowFiboCaculator();
            var res = fc.CalcNext(BigInteger.Zero.ToByteArray());

            Assert.AreEqual(BigInteger.One, new BigInteger(res));
        }
示例#3
0
        public void InvalidInput()
        {
            var fc = new SlowFiboCaculator();

            fc.CalcNext(new BigInteger(232).ToByteArray());
        }