コード例 #1
0
        public void AddBesideAndAbove()
        {
            const String expected =
                "<orders>" +
                "<order>" +
                "<item/>" +
                "<item/>" +
                "<item/>" +
                "</order>" +
                "<order/>" +
                "</orders>";

            builder = createOutputBuilder("orders");
            builder.AddBelow("order");
            builder.AddBelow("item");
            builder.AddBeside("item");
            builder.AddBeside("item");
            builder.AddAbove("order");
            assertXMLEquals(expected, builder.ToString(), "beside & above");
        }
コード例 #2
0
 public void AddBesideRoot()
 {
     builder = createOutputBuilder("orders");
     builder.AddBeside("customer");
 }