コード例 #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);
        }
コード例 #2
0
        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");
        }
コード例 #3
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);
		}