Below test code will fail with expection "*** Cannot use Isolate.Verify on a static method without first setting static method behavior using Isolate.Fake.StaticMethods()"
Isolate.Fake.StaticMethods(typeof(AuthenticationAttempt<CustomUserLoginAttempt>));
// Some code calling the static method...
Isolate.Verify.WasCalledWithArguments(() => AuthenticationAttempt<CustomUserLoginAttempt>.Log(null)).
Matching(a =>
{
CustomUserLoginAttempt loginAttempt = a[0] as CustomUserLoginAttempt;
return loginAttempt.Attempts == 1;
});
Obviously typemock supports verification on static method. The only problem i can see is my example is a generic class. So anybody can tell if Typemock can verify in this case. If so, then how? Many thanks.