private object parseNode(string xml, Type pluginType)
        {
            XmlElement element = DataMother.BuildDocument(xml).DocumentElement;
            var reader = new PrimitiveArrayReader();
            Instance instance = reader.Read(element, pluginType);

            return instance.Build(pluginType, new StubBuildSession());
        }
        public void CanProcess_an_array_of_primitive_types()
        {
            var reader = new PrimitiveArrayReader();

            reader.CanProcess(typeof (string)).ShouldBeFalse();
            reader.CanProcess(typeof (IWidget[])).ShouldBeFalse();

            reader.CanProcess(typeof (string[])).ShouldBeTrue();
            reader.CanProcess(typeof (int[])).ShouldBeTrue();
            reader.CanProcess(typeof (double[])).ShouldBeTrue();
        }