AK.F1.Timing.Extensions.ReflectionExtensionsTest.get_attributes_respects_the_inherit_argument C# (CSharp) Method

get_attributes_respects_the_inherit_argument() private method

private get_attributes_respects_the_inherit_argument ( ) : void
return void
        public void get_attributes_respects_the_inherit_argument()
        {
            // inherit should be true by default.
            Assert.NotEmpty(typeof(Child).GetAttributes<InheritedAttribute>());
            Assert.NotEmpty(typeof(Child).GetAttributes<InheritedAttribute>(true));

            Assert.Empty(typeof(Child).GetAttributes<InheritedAttribute>(false));
        }