Esempio n. 1
0
        public void Remove()
        {
            var d = new DObject {
                ["key1"] = "value"
            };

            d.Rename("key1", "key2");

            d.Contains("key1").ShouldBeFalse();
            d.Contains("key2").ShouldBeTrue();

            Should.Throw <KeyNotFoundException>(() => d.Rename("key1", "key2"));
        }