protected override bool IsTestMethod(MethodInfo method) { var name = method.Name; return(StartsWithIgnoreCase(name, ConcurrencyConventions.TestPrefix()) && TestPlatform .IsPublic(method) && !TestPlatform.IsStatic(method) && HasValidParameter(method)); }
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); } }