public void ShouldSerializeSimpleCustomISerializable() { const long value = 666L; var customSerializable = new CustomISerializable(value); var copy = SerializerClone(customSerializable); Assert.AreEqual(customSerializable.ValueAsLong, copy.ValueAsLong); }
public void ShouldSerializeSimpleCustomISerializable() { var value = 666L; var customSerializable = new CustomISerializable(value); var copy = SerializerClone(customSerializable); Assert.AreEqual(customSerializable, copy); }
public override bool Equals(object obj) { if (obj == null) { return(false); } if (ReferenceEquals(this, obj)) { return(true); } if (obj.GetType() != typeof(CustomISerializable)) { return(false); } CustomISerializable other = (CustomISerializable)obj; return(fakeIntPtr == other.fakeIntPtr); }