Attribute exception

I have an Interface
public Interface IInterface
{
[AutomaticRetry(Attempts =0)]
void MethodA();
}
}
and MyClass is implementing this Interface.
Using Rhinomocks I am trying to Unit test this MethodA but get an exception error:
at Hangfire.AutomaticRetryAttribute…ctor()
at System.RuntimeTypeHandle.CreateCaInstance(RuntimeType type, IRuntimeMethodInfo ctor)
at System.Reflection.CustomAttribute.GetCustomAttributes(RuntimeModule decoratedModule, Int32 decoratedMetadataToken, Int32 pcaCount, RuntimeType attributeFilterType, Boolean mustBeInheritable, IList derivedAttributes, Boolean isDecoratedTargetSecurityTransparent)
at System.Reflection.CustomAttribute.GetCustomAttributes(RuntimeMethodInfo method, RuntimeType caType, Boolean inherit)
at System.Reflection.RuntimeMethodInfo.GetCustomAttributes(Boolean inherit)
at Castle.DynamicProxy.Generators.BaseProxyGenerator.ReplicateNonInheritableAttributes(MethodInfo method, MethodEmitter emitter)
at Castle.DynamicProxy.Generators.BaseProxyGenerator.ImplementMethod(ClassEmitter emitter, FieldReference interceptorsField, FieldReference[] mixinFields, MethodToGenerate method, Dictionary2 method2Emitter)…

Exception thrown: ‘System.TypeInitializationException’ in Hangfire.Core.dll
Additional information: The type initializer for ‘Hangfire.AutomaticRetryAttribute’ threw an exception.
Hangfire.Core.dll version is 1.6.17.0