Beispiel #1
0
        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");
        }
Beispiel #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);
        }