コード例 #1
0
        public void GetValue()
        {
            var d = new DObject();

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

            d.Set("key", 1);

            d.GetValue <int>("key").ShouldBe(1);
        }