Example #1
0
        public void RemovingUnAddedKeyFails()
        {
            var  section = new ConfigurationSection(SectionName);
            bool success = section.Remove(Key);

            Assert.False(success);
        }
 public void CanRemoveAddedValue()
 {
     var section = new ConfigurationSection( SectionName );
     section.Set( Key, Value );
     bool success = section.Remove( Key );
     Assert.True( success );
 }
Example #3
0
        public void CanRemoveAddedValue()
        {
            var section = new ConfigurationSection(SectionName);

            section.Set(Key, Value);
            bool success = section.Remove(Key);

            Assert.True(success);
        }
 public void RemovingUnAddedKeyFails()
 {
     var section = new ConfigurationSection( SectionName );
     bool success = section.Remove( Key );
     Assert.IsFalse( success );
 }