/// <summary> /// Returns the display name for the method, called with specific arguments. /// </summary> public string GetDisplayName(object[] args) { return(MethodHelper.GetDisplayName(MethodInfo, args)); }
public void GetTypeArgumentsForMethodTests(string methodName, object[] args, Type[] typeArgs) { MethodInfo method = GetType().GetMethod(methodName, BindingFlags.Instance | BindingFlags.NonPublic); Assert.That(new GenericMethodHelper(method).GetTypeArguments(args), Is.EqualTo(typeArgs), MethodHelper.GetDisplayName(method, args)); }