AK.F1.Timing.Serialization.PropertyDescriptorCollectionTest.can_get_a_property_by_its_id C# (CSharp) Method

can_get_a_property_by_its_id() private method

private can_get_a_property_by_its_id ( ) : void
return void
        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));
        }