private static void LoadIfApplicable(IList<IStackTraceParser> found, AttributeStackTraceParser p)
		{
			if (p.IsApplicable())
			{
				found.Add(p);
			}
		}
Ejemplo n.º 2
0
 public virtual bool IsWorkingInThisEnvironment(string forFile)
 {
     return(GenericDiffReporter.IsTextFile(forFile) &&
            AttributeStackTraceParser.GetFirstFrameForAttribute(Approvals.CurrentCaller, frameworkAttribute) !=
            null);
 }
Ejemplo n.º 3
0
 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)}");
        }