コード例 #1
0
        public void Test_FromBaseWithAttribute()
        {
            InheritedAttribute attribute =
                (InheritedAttribute)AttributeUtility.GetCustomAttribute(_basePropertyWithSingleAttribute, typeof(InheritedAttribute), true);

            Assert.That(attribute, Is.Not.Null);
        }
コード例 #2
0
        public void TestGeneric_FromBaseWithAttribute()
        {
            InheritedAttribute attribute = AttributeUtility.GetCustomAttribute <InheritedAttribute> (_basePropertyWithSingleAttribute, true);

            Assert.That(attribute, Is.Not.Null);
        }