示例#1
0
        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("");
        }
示例#2
0
        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 />");
        }