public void Write_CollectionContentProperty()
        {
            var obj = new CollectionContentProperty();

            for (int i = 0; i < 4; i++)
            {
                obj.ListOfItems.Add(new SimpleClass());
            }
            Assert.AreEqual(ReadXml("CollectionContentProperty.xml").Trim(), XamlServices.Save(obj), "#1");
        }
Exemple #2
0
        public void Read_CollectionContentProperty()
        {
            var obj = new CollectionContentProperty();

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

            Read_CollectionContentProperty(xr, false);
        }