Exemplo n.º 1
0
        public void SetValue()
        {
            var         message = new MessageWithNonNullableRequiredStruct();
            MessagePart part    = this.ParameterizedMessageTypeTest(message.GetType());

            part.SetValue(message, "5");
            Assert.AreEqual(5, message.OptionalInt);
        }
Exemplo n.º 2
0
        public void GetValue()
        {
            var message = new MessageWithNonNullableRequiredStruct();

            message.OptionalInt = 8;
            MessagePart part = this.ParameterizedMessageTypeTest(message.GetType());

            Assert.AreEqual("8", part.GetValue(message));
        }
Exemplo n.º 3
0
		public void GetValue() {
			var message = new MessageWithNonNullableRequiredStruct();
			message.OptionalInt = 8;
			MessagePart part = this.ParameterizedMessageTypeTest(message.GetType());
			Assert.AreEqual("8", part.GetValue(message));
		}
Exemplo n.º 4
0
		public void SetValue() {
			var message = new MessageWithNonNullableRequiredStruct();
			MessagePart part = this.ParameterizedMessageTypeTest(message.GetType());
			part.SetValue(message, "5");
			Assert.AreEqual(5, message.OptionalInt);
		}