public IEnumerable <IMethodInfo> EnumerateTestMethods() { foreach (var method in TypeUnderTest.GetMethods()) { if (IsTestMethod(method)) { yield return(method); } } }
public IEnumerable <IMethodInfo> EnumerateTestMethods() { return(TypeUnderTest.GetMethods().Where(IsTestMethod)); }
public IEnumerable <IMethodInfo> EnumerateTestMethods() { return(from method in TypeUnderTest.GetMethods() where IsTestMethod(method) select method); }