Пример #1
0
        public void Serialize_WrongRoot_Error()
        {
            var ser   = new SerializerWrongRoot();
            var value = new Owner {
                Walls = new List <Wall> {
                    new Wall {
                        Bricks = new List <Brick> {
                            new Brick {
                                Id = 1
                            }, new Brick {
                                Id = 2
                            }
                        }
                    }
                }
            };

            ser.SerializeToString(value);
        }
Пример #2
0
        public void Deserialize_UnresolvedLink_Error()
        {
            var ser = new SerializerWrongRoot();

            ser.DeserializeFromString(@"{Walls:[{Bricks:[{Id:1,Touches:[""3""]},{Id:2}]}]}");
        }