Exemplo n.º 1
0
        public void Test3_Parse1()
        {
            StructuredText r = CreateRoot();
            StructuredText z = r.GetOrCreateChild("XXX.YYY.ZZZ");

            z.Set("A", "B");
            z.Set("C", "D");
            StructuredText z2 = z.Parent.AddChild("ZZZ");

            z2.Set("E", "F");

            //一回変換してOK?
            StructuredText r2 = new TextStructuredTextReader(new StringReader(Dump(r))).Read();

            Assert.AreEqual(Dump(r), Dump(r2));
        }
Exemplo n.º 2
0
        public void Test3_Parse1()
        {
            StructuredText r = CreateRoot();
            StructuredText z = r.GetOrCreateChild("XXX.YYY.ZZZ");
            z.Set("A", "B");
            z.Set("C", "D");
            StructuredText z2 = z.Parent.AddChild("ZZZ");
            z2.Set("E", "F");

            //���ϊ�����OK�H
            StructuredText r2 = new TextStructuredTextReader(new StringReader(Dump(r))).Read();
            Assert.AreEqual(Dump(r), Dump(r2));
        }