Ejemplo n.º 1
0
        private void checkIncludeInvariants(ConfigSectionNode conf)
        {
            Console.WriteLine(conf.ToLaconicString(Azos.CodeAnalysis.Laconfig.LaconfigWritingOptions.PrettyPrint));

            Aver.AreEqual(3, conf.ChildCount);

            Aver.AreEqual(129, conf.AttrByName("age").ValueAsInt());
            Aver.AreEqual("all", conf.AttrByName("_override").Value);

            Aver.AreEqual("Alex", conf.Navigate("/WithNewName/people/a").Value);
            Aver.AreEqual("Boris", conf.Navigate("/WithNewName/people/b").Value);

            Aver.AreEqual("Cleveland", conf.Navigate("/city/$name").Value);

            Aver.AreEqual("Alex", conf.Navigate("/people/a").Value);
            Aver.AreEqual("Boris", conf.Navigate("/people/b").Value);
        }
Ejemplo n.º 2
0
 public override string ToString()
 {
     return(m_Config.ToLaconicString(CodeAnalysis.Laconfig.LaconfigWritingOptions.Compact));
 }