Exemplo n.º 1
0
        public void Write_ListWrapper()
        {
            var obj = new ListWrapper(new List <int> (new int [] { 5, -3, 0 })
            {
                Capacity = 3
            });                                                                                            // set explicit capacity for trivial implementation difference

            Assert.AreEqual(ReadXml("ListWrapper.xml").Trim(), XamlServices.Save(obj), "#1");
        }
Exemplo n.º 2
0
		public void Read_ListWrapper ()
		{
			var obj = new ListWrapper (new List<int> (new int [] {5, -3, 0}));
			var r = new XamlObjectReader (obj);
			Read_ListWrapper (r);
		}