private void AssertRoundTrip(UInt64 startValue) { var encodedNumber = new Base50EncodedUInt64(startValue); String textRepresentation = encodedNumber.ToString(); var roundTripedNumber = new Base50EncodedUInt64(textRepresentation); Assert.AreEqual(startValue, roundTripedNumber.ToUInt64()); Assert.AreEqual(encodedNumber.Value, roundTripedNumber.Value); }
public bool Equals(Base50EncodedUInt64 other) { return _value == other._value; }