public static bool IsDefined(ICustomAttributeDataProvider customAttributeDataProvider, Type attributeType, bool inherit) { ArgumentUtility.CheckNotNull("customAttributeDataProvider", customAttributeDataProvider); ArgumentUtility.CheckNotNull("attributeType", attributeType); return(IsDefined(customAttributeDataProvider.GetCustomAttributeData(inherit), attributeType)); }
public void SetUp() { _providerMock = MockRepository.GenerateStrictMock <ICustomAttributeDataProvider>(); _randomInherit = BooleanObjectMother.GetRandomBoolean(); }
public static object[] GetCustomAttributes(ICustomAttributeDataProvider customAttributeDataProvider, bool inherit) { ArgumentUtility.CheckNotNull("customAttributeDataProvider", customAttributeDataProvider); return(GetCustomAttributes(customAttributeDataProvider, typeof(object), inherit)); }