public void Can_Serialize_MessageWithPublicSetters() { var actual = new CustomMessage.MessageWithPublicSetters() { Name = "John", Age = 15 }; AssertEqual(actual); }
public virtual void Can_Serialize_MessageWithGenericPropertyComplex() { var data = new CustomMessage.MessageWithPublicSetters { Name = "John", Age = 15 }; var actual = new PolymorphismMessages.ImmutableMessageWithGenericTypes <CustomMessage.MessageWithPublicSetters> { Name = "John", Data = data }; AssertEqual(actual); }