public void ToBigIntegerTest() { BigUInt bui = new BigUInt("DEADBEEF"); BigInteger bi = bui.ToBigInteger(); Assert.IsNotNull(bi); Assert.IsFalse(bi.IsEven); Assert.IsFalse(bi.IsZero); Assert.AreEqual(0, bi.CompareTo(0xDEADBEEFul)); }
public void ToBigIntegerTest() { BigUInt bui = new BigUInt("DEADBEEF"); BigInteger bi = bui.ToBigInteger(); Assert.IsNotNull(bi); Assert.IsFalse(bi.IsEven); Assert.IsFalse(bi.IsZero); Assert.AreEqual(0, bi.CompareTo(0xDEADBEEFul)); }