public void DefaultCtorWorks() { var a = new BigInteger(); Assert.AreEqual(BigInteger.One, ++a, "#1"); a = new BigInteger(); Assert.AreEqual(BigInteger.MinusOne, --a, "#2"); a = new BigInteger(); Assert.AreEqual(BigInteger.MinusOne, ~a, "#3"); a = new BigInteger(); Assert.AreEqual("0", a.ToString(), "#4"); a = new BigInteger(); Assert.AreEqual(true, a == a, "#5"); a = new BigInteger(); Assert.AreEqual(false, a < a, "#6"); a = new BigInteger(); Assert.AreEqual(true, a < 10L, "#7"); a = new BigInteger(); Assert.AreEqual(true, a.IsEven, "#8"); a = new BigInteger(); Assert.AreEqual(0, (int)a, "#9"); a = new BigInteger(); Assert.AreEqual((uint) 0, (uint)a, "#10"); a = new BigInteger(); Assert.AreEqual((ulong) 0, (ulong)a, "#11"); a = new BigInteger(); Assert.AreEqual(true, a.Equals(a), "#12"); a = new BigInteger(); Assert.AreEqual(a, BigInteger.Min(a, a), "#13"); a = new BigInteger(); Assert.AreEqual(a, BigInteger.GreatestCommonDivisor(a, a), "#14"); a = new BigInteger(); Assert.AreEqual(BigInteger.Zero.GetHashCode(), a.GetHashCode(), "#15"); a = new BigInteger(); Assert.AreEqual(BigInteger.Zero, a, "#16"); }