public virtual void Can_Serialize_MessageWithObjectPropertyPrimitive()
        {
            var actual = new PolymorphismMessages.ImmutableMessageWithObjectTypes
            {
                Name = "John",
                Data = 435345345
            };

            AssertEqual(actual);
        }
Beispiel #2
0
        public virtual void Can_Serialize_MessageWithObjectPropertyPrimitive_do_not_downcast_to_byte()
        {
            var actual = new PolymorphismMessages.ImmutableMessageWithObjectTypes
            {
                Name = "John",
                Data = 125
            };

            AssertEqual(actual);
        }
        public virtual void Can_Serialize_MessageWithObjectPropertyComplex()
        {
            var data = new CustomMessage.MessageWithPublicSetters
            {
                Name = "John",
                Age  = 15
            };

            var actual = new PolymorphismMessages.ImmutableMessageWithObjectTypes
            {
                Name = "John",
                Data = data
            };

            AssertEqual(actual);
        }