예제 #1
0
파일: HiveTests.cs 프로젝트: miseeger/NBean
        public void ClearsAndClearsAll()
        {
            var hive = new Hive
            {
                ["MyProp"]    = "Value",
                ["OtherProp"] = "OtherValue"
            };

            hive.Clear("MyProp");
            Assert.Null(hive["MyProp"]);
            Assert.Equal("OtherValue", hive["OtherProp"]);

            hive["MyProp"] = "NewValue";
            hive.ClearAll();
            Assert.Null(hive["MyProp"]);
            Assert.Null(hive["OtherProp"]);
        }