public static void TestStringEqualRoundTrip(EInteger obj) { string str = obj.ToString(); EInteger newobj = EInteger.FromString(str); string str2 = newobj.ToString(); TestCommon.AssertEqualsHashCode(obj, newobj); TestCommon.AssertEqualsHashCode(str, str2); }
public static void AssertBigIntegersEqual(string a, EInteger b) { Assert.AreEqual(a, b.ToString()); EInteger a2 = BigFromString(a); TestCommon.CompareTestEqualAndConsistent(a2, b); TestCommon.AssertEqualsHashCode(a2, b); }
public static string BigIntToString(EInteger bigint) { return bigint.ToString(); }