Beispiel #1
0
        public void GetCustomAttribute_AttributeSpecified_WithoutInherit()
        {
            Stub1Attribute attr = typeof(InheritStubClass1).GetCustomAttribute <Stub1Attribute>(false);

            Assert.IsNull(attr);
        }
Beispiel #2
0
        public void GetCustomAttribute_AttributeSpecified()
        {
            Stub1Attribute attr = typeof(StubClass1).GetCustomAttribute <Stub1Attribute>();

            Assert.NotNull(attr);
        }