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

has_attribute_respects_the_inherit_argument() private method

private has_attribute_respects_the_inherit_argument ( ) : void
return void
        public void has_attribute_respects_the_inherit_argument()
        {
            // inherit should be true by default.
            Assert.True(typeof(Child).HasAttribute<InheritedAttribute>());
            Assert.True(typeof(Child).HasAttribute<InheritedAttribute>(true));

            Assert.False(typeof(Child).HasAttribute<InheritedAttribute>(false));
        }