Exemplo n.º 1
0
        public void Write_CollectionContentPropertyX()
        {
            var obj = new CollectionContentPropertyX();
            var l   = new List <object> ();

            obj.ListOfItems.Add(l);
            for (int i = 0; i < 4; i++)
            {
                l.Add(new SimpleClass());
            }
            Assert.AreEqual(ReadXml("CollectionContentPropertyX.xml").Trim(), XamlServices.Save(obj), "#1");
        }
Exemplo n.º 2
0
        public void Read_CollectionContentPropertyX()
        {
            var obj = new CollectionContentPropertyX();
            var l   = new List <object> ();

            obj.ListOfItems.Add(l);
            for (int i = 0; i < 4; i++)
            {
                l.Add(new SimpleClass());
            }
            var xr = new XamlObjectReader(obj);

            Read_CollectionContentPropertyX(xr, false);
        }