diff --git a/src/Moq/Extensions.cs b/src/Moq/Extensions.cs index 35bfead23..30661adda 100644 --- a/src/Moq/Extensions.cs +++ b/src/Moq/Extensions.cs @@ -218,11 +218,7 @@ public static bool HasCompatibleParameterTypes(this MethodInfo method, Type[] pa for (int i = 0; i < parameters.Length; i++) { var parameterType = paramTypes[i]; - if (parameterType == typeof(object)) - { - continue; - } - else if (exactParameterMatch && parameters[i].ParameterType != parameterType) + if (exactParameterMatch && parameters[i].ParameterType != parameterType) { return false; }