public void WriteRead_SpecificType_EnsureDeserializedProperly() { SimpleCustomType obj = new SimpleCustomType { BoolProperty = false }; MemoryStream stream = new MemoryStream(); Serializer.Write(stream, obj); SimpleCustomType deserialized = Serializer.Read<SimpleCustomType>(new MemoryStream(stream.ToArray())); Assert.Equal(obj, deserialized); }
protected bool Equals(SimpleCustomType other) { return BoolProperty.Equals(other.BoolProperty); }
protected bool Equals(SimpleCustomType other) { return(BoolProperty.Equals(other.BoolProperty)); }