Пример #1
0
        public void Read_MyArrayExtension()
        {
            var obj = new MyArrayExtension(new int [] { 5, -3, 0 });
            var r   = new XamlObjectReader(obj);

            Read_ArrayOrArrayExtensionOrMyArrayExtension(r, obj, typeof(MyArrayExtension));
        }
Пример #2
0
		public void Read_MyArrayExtension ()
		{
			var obj = new MyArrayExtension (new int [] {5, -3, 0});
			var r = new XamlObjectReader (obj);
			Read_ArrayOrArrayExtensionOrMyArrayExtension (r, obj, typeof (MyArrayExtension));
		}
Пример #3
0
        public void Write_MyArrayExtension()
        {
            var obj = new MyArrayExtension(new int [] { 5, -3, 0 });

            Assert.AreEqual(ReadXml("MyArrayExtension.xml").Trim(), XamlServices.Save(obj), "#1");
        }