예제 #1
0
        public void PositionalParameters2()
        {
            var obj = new PositionalParametersWrapper("foo", 5);
            var r   = new XamlObjectReader(obj);

            PositionalParameters2(r);
        }
예제 #2
0
        public void Write_PositionalParameters1Wrapper()
        {
            // Unlike the above case, this has the wrapper object and hence PositionalParametersClass1 can be written as an attribute (markup extension)
            var obj = new PositionalParametersWrapper("foo", 5);

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