Example #1
0
        public void Read_AmbientPropertyContainer2()
        {
            var obj = new SecondTest.ResourcesDict();
            var t1  = new SecondTest.TestObject();

            obj.Add("TestDictItem", t1);
            obj.Add("okay", new SecondTest.ResourceExtension(t1));
            var xr = new XamlObjectReader(obj);

            Read_AmbientPropertyContainer(xr, true);
        }
Example #2
0
        [Category("NotWorking")]          // TestProperty is written as element so far.
        public void Write_AmbientPropertyContainer()
        {
            var obj = new SecondTest.ResourcesDict();
            var t1  = new SecondTest.TestObject();

            obj.Add("TestDictItem", t1);
            var t2 = new SecondTest.TestObject();

            t2.TestProperty = t1;
            obj.Add("okay", t2);
            Assert.AreEqual(ReadXml("AmbientPropertyContainer.xml").Trim(), XamlServices.Save(obj), "#1");
        }
Example #3
0
        public void Read_AmbientPropertyContainer()
        {
            var obj = new SecondTest.ResourcesDict();
            var t1  = new SecondTest.TestObject();

            obj.Add("TestDictItem", t1);
            var t2 = new SecondTest.TestObject();

            t2.TestProperty = t1;
            obj.Add("okay", t2);
            var xr = new XamlObjectReader(obj);

            Read_AmbientPropertyContainer(xr, false);
        }
		[Category (Categories.NotWorking)] // only member ordering difference, maybe.
		public void Read_AmbientPropertyContainer2 ()
		{
			var obj = new SecondTest.ResourcesDict ();
			var t1 = new SecondTest.TestObject ();
			obj.Add ("TestDictItem", t1);
			obj.Add ("okay", new SecondTest.ResourceExtension (t1));
			var xr = new XamlObjectReader (obj);
			Read_AmbientPropertyContainer (xr, true);
		}
		[Category (Categories.NotWorking)] // only member ordering difference, maybe.
		public void Read_AmbientPropertyContainer ()
		{
			var obj = new SecondTest.ResourcesDict ();
			var t1 = new SecondTest.TestObject ();
			obj.Add ("TestDictItem", t1);
			var t2 = new SecondTest.TestObject ();
			t2.TestProperty = t1;
			obj.Add ("okay", t2);
			var xr = new XamlObjectReader (obj);
			Read_AmbientPropertyContainer (xr, false);
		}