Exemplo n.º 1
0
        public void IncTests()
        {
            var list = new List <long>()
            {
                0x1, 0x2, 0x12, 0x123, 0x1234, 0x12345, 0x123456, 0x800000, 0x1234567,
                0x7fffff, 0x7ffffffff,
            };
            var big = new BigInteger(0x1234567);
            var g   = long.Parse(Mint.CompactToBig(Mint.BigToCompact(big)).ToString());

            list.Add(g);
            list.Add(g - 1);

            list.ForEach(num => {
                bool isValid = IncTest(num);

                Assert.IsTrue(isValid);
            });
        }