private static bool HasNoTestOrIsVisualTest(StackFrame[] frames) { return !frames.Any(IsTestMethod) || frames.Any(IsVisualTestMethod); }