public void FieldNameConventionsWithAttribute() { var obj1 = new FieldConventionAttributeClass { MyName = "Fred" }; // Specifies camelCase var serializer = new FudgeSerializer(context); var msg = serializer.SerializeToMsg(obj1); Assert.NotNull(msg.GetByName("MYNAME")); var obj2 = (FieldConventionAttributeClass)serializer.Deserialize(msg); Assert.Equal(obj1.MyName, obj2.MyName); }
public void FieldNameConventionsWithAttribute() { var obj1 = new FieldConventionAttributeClass { MyName = "Fred" }; // Specifies camelCase var serializer = new FudgeSerializer(context); var msg = serializer.SerializeToMsg(obj1); Assert.NotNull(msg.GetByName("MYNAME")); var obj2 = (FieldConventionAttributeClass)serializer.Deserialize(msg); Assert.Equal(obj1.MyName, obj2.MyName); }