private static void LoadIfApplicable(IList<IStackTraceParser> found, AttributeStackTraceParser p) { if (p.IsApplicable()) { found.Add(p); } }
public virtual bool IsWorkingInThisEnvironment(string forFile) { return(GenericDiffReporter.IsTextFile(forFile) && AttributeStackTraceParser.GetFirstFrameForAttribute(Approvals.CurrentCaller, frameworkAttribute) != null); }
public bool IsFrameworkUsed() { return(AttributeStackTraceParser.GetFirstFrameForAttribute(Approvals.CurrentCaller, frameworkAttribute) != null); }
public void NamespaceFilters() { var namespaces = new[] { GetType().Namespace, "", null, typeof(string).Namespace, typeof(Approvals).Namespace, typeof(Logger).Namespace }; Approvals.VerifyAll("Namespace is part of Approvals", namespaces, n => $"{n} = {AttributeStackTraceParser.IsNamespaceApprovals(n)}"); }