public void Should_use_provided_converters_for_child_nodes()
        {
            var childNode = new TextNode { Text = "TEXT" };
            codeGroupNodeMock.SetupGet(cg => cg.Children).Returns(new IWebFormsNode[] {childNode });
            childNodeConverterMock.Setup(c => c.CanConvertNode(childNode)).Returns(true).Verifiable();
            childNodeConverterMock.Setup(c => c.ConvertNode(childNode)).Returns(new IRazorNode[] { new RazorTextNode() });

            var result = converter.ConvertNode(codeGroupNodeMock.Object);

            result.Count.ShouldEqual(1);
            result[0].ShouldBeType(typeof(RazorTextNode));
            childNodeConverterMock.Verify();
        }
 private IWebFormsNode TextNodeBuilder(Match match)
 {
     var node = new TextNode { Text = match.Value };
     attributesReader.ReadAttributes(match, node.Attributes);
     return node;
 }