public void RenderListEmptyChildren() { var qdc = new XmlConverter(new JArray()); qdc._document = new XmlDocument(); var node = qdc.RenderList(new ListGroup(new ListItem[] { new ListItem(new BlockGroup(DeltaInsertOp.CreateNewLineOp(), new DeltaInsertOp[] { })) })); node.OuterXml.Should().Be(""); }
public void RenderListEmptyInnerlist() { var qdc = new XmlConverter(new JArray()); qdc._document = new XmlDocument(); var emptyList = new ListGroup(new ListItem[] { new ListItem(new BlockGroup(DeltaInsertOp.CreateNewLineOp(), new DeltaInsertOp[] { })) }); var node = qdc.RenderList(new ListGroup(new ListItem[] { new ListItem(new BlockGroup(new DeltaInsertOp("thing"), new DeltaInsertOp[] { }), emptyList) })); node.OuterXml.Should().Be("<p />"); }