Example #1
0
        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));
		}
Example #3
0
        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));
        }
		public void ConstantFieldMemberInvalidValues() {
			var message = new MessageWithConstantField();
			MessagePart part = GetMessagePart(message.GetType(), "ConstantField");
			part.SetValue(message, "def");
		}