Exemplo n.º 1
0
        protected override bool IsTestMethod(MethodInfo method)
        {
            var name = method.Name;

            return(StartsWithIgnoreCase(name, ConcurrencyConventions.TestPrefix()) && TestPlatform
                   .IsPublic(method) && !TestPlatform.IsStatic(method) && HasValidParameter(method));
        }
Exemplo n.º 2
0
 private MethodInfo CheckMethodFor(Type testClass, string testMethodName)
 {
     try
     {
         Type[] types = new Type[] { typeof(IExtObjectContainer) };
         return(Sharpen.Runtime.GetDeclaredMethod(testClass, ConcurrencyConventions.CheckMethodNameFor
                                                      (testMethodName), types));
     }
     catch (Exception)
     {
         // if checkMethod is not availble, return as success
         return(null);
     }
 }