MethodHelper provides static methods for working with methods.
コード例 #1
0
ファイル: MethodWrapper.cs プロジェクト: rfregosa/nunit
 /// <summary>
 /// Returns the display name for the method, called with specific arguments.
 /// </summary>
 public string GetDisplayName(object[] args)
 {
     return(MethodHelper.GetDisplayName(MethodInfo, args));
 }
コード例 #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));
        }