예제 #1
0
 public IEnumerable <IMethodInfo> EnumerateTestMethods()
 {
     foreach (var method in TypeUnderTest.GetMethods())
     {
         if (IsTestMethod(method))
         {
             yield return(method);
         }
     }
 }
예제 #2
0
파일: Specs.cs 프로젝트: snickroger/Totem
 public IEnumerable <IMethodInfo> EnumerateTestMethods()
 {
     return(TypeUnderTest.GetMethods().Where(IsTestMethod));
 }
예제 #3
0
 public IEnumerable <IMethodInfo> EnumerateTestMethods()
 {
     return(from method in TypeUnderTest.GetMethods()
            where IsTestMethod(method)
            select method);
 }