Exemple #1
0
        public void Read_ListWrapper2()          // read-write list member.
        {
            var obj = new ListWrapper2(new List <int> (new int [] { 5, -3, 0 }));
            var r   = new XamlObjectReader(obj);

            Read_ListWrapper2(r);
        }
        public void Write_ListWrapper2()
        {
            var obj = new ListWrapper2(new List <int> (new int [] { 5, -3, 0 })
            {
                Capacity = 3
            });                                                                                             // set explicit capacity for trivial implementation difference

            Assert.AreEqual(ReadXml("ListWrapper2.xml").Trim(), XamlServices.Save(obj), "#1");
        }
		public void Read_ListWrapper2 () // read-write list member.
		{
			var obj = new ListWrapper2 (new List<int> (new int [] {5, -3, 0}));
			var r = new XamlObjectReader (obj);
			Read_ListWrapper2 (r);
		}