Ejemplo n.º 1
0
        public void DivideAndRemainderTest()
        {
            BigInt a = new BigInt("489a03c58dcf7fcfc97e99ffef0bb4634", 16);
            BigInt b = new BigInt("510c6972d795ec0c2b081b81de767f808", 16);
            BigInt e = new BigInt(1);
            BigInt r = new BigInt("87265ad49c66c3c61898181ef6acb1d4", 16);

            BigInt[] result = b.DivideAndRemainder(a);
            Assert.AreEqual(e, result[0]);
            Assert.AreEqual(r, result[1]);
        }