// ReSharper disable once ParameterOnlyUsedForPreconditionCheck.Local private static void VerifyMethodSpecification <TReturn>(string methodName , BindingFlags bindingAttr, params Action <ParameterInfo>[] havingArgs) { var actualMethod = SubjectType.GetMethod(methodName, bindingAttr); Assert.NotNull(actualMethod); Assert.Equal(typeof(TReturn), actualMethod.ReturnType); var args = actualMethod.GetParameters(); Assert.Collection(args, havingArgs); }