public void CanSerializeIntMessage()
        {
            var message = new UntypedContainerMessage {
                Contents = 123
            };

            AssertEqual(message);
        }
        public void CanSerializeDecimalMessage()
        {
            var message = new UntypedContainerMessage {
                Contents = 123.456m
            };

            AssertEqual(message);
        }
示例#3
0
        public void Can_serialize_double_message()
        {
            var message = new UntypedContainerMessage {
                Contents = 123.456d
            };

            AssertEqual(message);
        }
        public void CanSerializeAddressMessage()
        {
            var message = new UntypedContainerMessage {
                Contents = new Address("abc", "def")
            };

            AssertEqual(message);
        }
示例#5
0
        public void Can_serialize_long_message()
        {
            var message = new UntypedContainerMessage {
                Contents = 123L
            };

            AssertEqual(message);
        }