public void can_get_a_property_by_its_id()
        {
            var property0 = PropertyDescriptor.For(typeof(DecoratedType).GetProperty("Property0"));
            var property1 = PropertyDescriptor.For(typeof(DecoratedType).GetProperty("Property1"));
            var collection = new PropertyDescriptorCollection(new[] { property0, property1 });

            Assert.Equal(property0, collection.GetById(0));
            Assert.Equal(property1, collection.GetById(1));
        }
        public void get_by_id_returns_null_if_no_property_exists_with_specified_id()
        {
            var collection = new PropertyDescriptorCollection(new PropertyDescriptor[0]);

            Assert.Null(collection.GetById(5));
        }