public void xml_to_object_parsing() { var catalog = XmlToObjectParser.ParseFromXml(_sampleXml); var numberOfCDsinCatalog = catalog.catalog.cd.Count; var titleFromUKCD = catalog.catalog.cd[1].title; Assert.That(numberOfCDsinCatalog == 3); Assert.That(titleFromUKCD == "Hide your heart"); }
public void can_parse_xml_with_two_equal_elements() { var xml = @"<xml> <node>FirstEqual</node> <node>SecondEqual</node> </xml>"; var parsedObject = XmlToObjectParser.ParseFromXml(xml); Assert.True(true); }