public void CanSerializeImmutableMessages() { var message = new ImmutableMessage(Tuple.Create("aaa", "bbb")); var serializer = Sys.Serialization.FindSerializerFor(message); var serialized = serializer.ToBinary(message); var deserialized = (ImmutableMessage)serializer.FromBinary(serialized, typeof(ImmutableMessage)); Assert.Equal(message, deserialized); }
protected bool Equals(ImmutableMessage other) { return(string.Equals(Bar, other.Bar) && string.Equals(Foo, other.Foo)); }
public void CanSerializeImmutableMessages() { var message = new ImmutableMessage(Tuple.Create("aaa", "bbb")); AssertEqual(message); }
protected bool Equals(ImmutableMessage other) { return string.Equals(Bar, other.Bar) && string.Equals(Foo, other.Foo); }