public void ConstantFieldMemberInvalidValues() { var message = new MessageWithConstantField(); MessagePart part = GetMessagePart(message.GetType(), "ConstantField"); part.SetValue(message, "def"); }
public void ConstantFieldMemberValidValues() { var message = new MessageWithConstantField(); MessagePart part = GetMessagePart(message.GetType(), "ConstantField"); Assert.AreEqual("abc", part.GetValue(message)); part.SetValue(message, "abc"); Assert.AreEqual("abc", part.GetValue(message)); }