public void Interface_GetCorrectImplementation() { string objectXml = "<TestInterface Type=\"TestInterfaceImpl1\" OneProperty=\"OneValue\"/>"; _tester.TestDeserialization <ITestInterface>(objectXml, new TestInterfaceImpl1 { OneProperty = "OneValue" }); }
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" } }); }