public static void TestStringEqualRoundTrip(ERational obj) { if (obj == null) { throw new ArgumentNullException(nameof(obj)); } string str = obj.ToString(); ERational newobj = ERational.FromString(str); if (str.Length < 100 || !obj.Equals(newobj)) { TestCommon.AssertEqualsHashCode(obj, newobj); string str2 = newobj.ToString(); TestCommon.AssertEqualsHashCode(str, str2); } }