Beispiel #1
0
        public void DeletesAndDeletesAll()
        {
            var hive = new Hive
            {
                ["MyProp"]    = "Value",
                ["OtherProp"] = "OtherValue"
            };

            hive.Delete("MyProp");
            Assert.False(hive.Exists("MyProp"));
            Assert.True(hive.Exists("OtherProp"));

            hive["MyProp"] = "ValueRevived";
            hive.DeleteAll();
            Assert.False(hive.Exists("MyProp"));
            Assert.False(hive.Exists("OtherProp"));
        }