MethodHelper provides static methods for working with methods.
Example #1
0
 /// <summary>
 /// Returns the display name for the method, called with specific arguments.
 /// </summary>
 public string GetDisplayName(object[] args)
 {
     return(MethodHelper.GetDisplayName(MethodInfo, args));
 }
Example #2
0
        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));
        }