예제 #1
0
     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);
 }
예제 #2
0
 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);
 }
예제 #3
0
 public static string BigIntToString(EInteger bigint)
 {
     return bigint.ToString();
 }