Ejemplo n.º 1
0
        public static bool IsDefined(ICustomAttributeDataProvider customAttributeDataProvider, Type attributeType, bool inherit)
        {
            ArgumentUtility.CheckNotNull("customAttributeDataProvider", customAttributeDataProvider);
            ArgumentUtility.CheckNotNull("attributeType", attributeType);

            return(IsDefined(customAttributeDataProvider.GetCustomAttributeData(inherit), attributeType));
        }
Ejemplo n.º 2
0
        public void SetUp()
        {
            _providerMock = MockRepository.GenerateStrictMock <ICustomAttributeDataProvider>();

            _randomInherit = BooleanObjectMother.GetRandomBoolean();
        }
Ejemplo n.º 3
0
        public static object[] GetCustomAttributes(ICustomAttributeDataProvider customAttributeDataProvider, bool inherit)
        {
            ArgumentUtility.CheckNotNull("customAttributeDataProvider", customAttributeDataProvider);

            return(GetCustomAttributes(customAttributeDataProvider, typeof(object), inherit));
        }