Esempio n. 1
0
        public void Interface_GetCorrectImplementation()
        {
            string objectXml = "<TestInterface Type=\"TestInterfaceImpl1\" OneProperty=\"OneValue\"/>";

            _tester.TestDeserialization <ITestInterface>(objectXml, new TestInterfaceImpl1 {
                OneProperty = "OneValue"
            });
        }
Esempio n. 2
0
        public void ListOfStrings_FillItems()
        {
            string objectXml =
                "<ObjectWithListProperty>" +
                "<Elements>" +
                "<String>HelloWorld1</String>" +
                "<String>HelloWorld2</String>" +
                "<String>HelloWorld3</String>" +
                "</Elements>" +
                "</ObjectWithListProperty>";


            _tester.TestDeserialization(objectXml, new ObjectWithListProperty
            {
                Elements = new List <string> {
                    "HelloWorld1", "HelloWorld2", "HelloWorld3"
                }
            });
        }