public void Collection() {
     var doc = new XDocument();
     var node = new XElement("arr");
     node.Add(new XAttribute("name", "features"));
     node.Add(new XElement("str", "hard drive"));
     doc.Add(node);
     var parser = new InferringFieldParser(new DefaultFieldParser());
     var value = parser.Parse(node, typeof (object));
     Assert.IsInstanceOfType<ArrayList>(value);
 }
        public void Collection()
        {
            var doc = new XmlDocument();
            var node = doc.CreateElement("arr");
            var name = doc.CreateAttribute("name");
            name.InnerText = "features";
            node.Attributes.Append(name);
            var e = doc.CreateElement("str");
            e.InnerText = "hard drive";
            node.AppendChild(e);

            var parser = new InferringFieldParser(new DefaultFieldParser());
            var value = parser.Parse(node, typeof (object));
            Assert.IsInstanceOfType<ArrayList>(value);
        }