Пример #1
0
        public void Write_EnumContainer()
        {
            var obj = new EnumContainer()
            {
                EnumProperty = EnumValueType.Two
            };

            Assert.AreEqual(ReadXml("EnumContainer.xml").Trim(), XamlServices.Save(obj), "#1");
        }
Пример #2
0
        public void Read_EnumContainer()
        {
            var obj = new EnumContainer()
            {
                EnumProperty = EnumValueType.Two
            };
            var xr = new XamlObjectReader(obj);

            Read_EnumContainer(xr);
        }