public void TestObjectCanBeDeserialized() { var xml = IndeXml.Parse(flowerText); var list = xml.Select(x => x.Deserialize <Flower>()); Assert.IsTrue(list.Any(x => x.COMMON == "Mayapple" && x.BOTANICAL == "Podophyllum peltatum")); }
public void TestObjectCanBeEnumerated() { var xml = IndeXml.Parse(flowerText); Assert.IsTrue(xml.Any(x => x["COMMON"].ToString() == "Mayapple" && x["BOTANICAL"].ToString() == "Podophyllum peltatum")); }
public void TestParserParsesWithoutError() { var xml = IndeXml.Parse(flowerText); }