public void GetValue_ReturnsValueFromUnderlyingDictionary()
        {
            IDictionary<string, object> data = new Dictionary<string, object>();
            data.Add("Property1", "Value1");
            data.Add("Property2", 2);

            DictionaryPropertyDescriptor pd1 = new DictionaryPropertyDescriptor(data, "Property1", typeof(string));
            Assert.That(pd1.GetValue(null), Is.EqualTo(data["Property1"]));

            DictionaryPropertyDescriptor pd2 = new DictionaryPropertyDescriptor(data, "Property2", typeof(int));
            Assert.That(pd2.GetValue(null), Is.EqualTo(data["Property2"]));
        }
        public void GetValue_ReturnsValueFromUnderlyingDictionary()
        {
            var data = new Dictionary <string, object>();

            data.Add("Property1", "Value1");
            data.Add("Property2", 2);

            var pd1 = new DictionaryPropertyDescriptor(data, "Property1", typeof(string));

            pd1.GetValue(null).Should().Be("Value1");

            var pd2 = new DictionaryPropertyDescriptor(data, "Property2", typeof(int));

            pd2.GetValue(null).Should().Be(2);
        }