Exemplo n.º 1
0
        public void ReadOnlyErrorOnNodeDelete()
        {
            var conf = new NFX.Environment.JSONConfiguration();

            conf.Create();
            conf.Root.AddChildNode("A", null);
            conf.SetReadOnly(true);
            conf.Root["A"].Delete();
        }
Exemplo n.º 2
0
        public void ReadOnlyErrorOnNodeRename()
        {
            var conf = new NFX.Environment.JSONConfiguration();

            conf.Create();
            conf.Root.AddChildNode("A", null);
            conf.SetReadOnly(true);
            conf.Root.Name = "changed-name";
        }
Exemplo n.º 3
0
 public void ReadOnlyErrorOnNodeRename()
 {
     var conf = new NFX.Environment.JSONConfiguration();
        conf.Create();
        conf.Root.AddChildNode("A", null);
        conf.SetReadOnly(true);
        conf.Root.Name = "changed-name";
 }
Exemplo n.º 4
0
 public void ReadOnlyErrorOnNodeDelete()
 {
     var conf = new NFX.Environment.JSONConfiguration();
        conf.Create();
        conf.Root.AddChildNode("A", null);
        conf.SetReadOnly(true);
        conf.Root["A"].Delete();
 }