示例#1
0
        public void GetString()
        {
            var d = new DObject();

            Should.Throw <KeyNotFoundException>(() => d.GetString("key"));

            d.Set("key", "value");

            d.GetString("key").ShouldBe("value");
        }