コード例 #1
0
        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"));
        }
コード例 #2
0
        public void TestObjectCanBeEnumerated()
        {
            var xml = IndeXml.Parse(flowerText);

            Assert.IsTrue(xml.Any(x => x["COMMON"].ToString() == "Mayapple" && x["BOTANICAL"].ToString() == "Podophyllum peltatum"));
        }
コード例 #3
0
 public void TestParserParsesWithoutError()
 {
     var xml = IndeXml.Parse(flowerText);
 }