public static void Verify(IApprovalWriter writer, IApprovalNamer namer, IApprovalFailureReporter reporter) { var normalizeLineEndingsForTextFiles = CurrentCaller.GetFirstFrameForAttribute <IgnoreLineEndingsAttribute>(); var shouldIgnoreLineEndings = normalizeLineEndingsForTextFiles == null || normalizeLineEndingsForTextFiles.IgnoreLineEndings; Approver.Verify(new FileApprover(writer, namer, shouldIgnoreLineEndings), reporter); }
//begin-snippet: complete_verify_call public static void Verify(IApprovalWriter writer, IApprovalNamer namer, IApprovalFailureReporter reporter) //end-snippet { var normalizeLineEndingsForTextFiles = CurrentCaller.GetFirstFrameForAttribute <IgnoreLineEndingsAttribute>(); var shouldIgnoreLineEndings = normalizeLineEndingsForTextFiles == null || normalizeLineEndingsForTextFiles.IgnoreLineEndings; var approver = GetDefaultApprover(writer, namer, shouldIgnoreLineEndings); Verify(approver, reporter); }
public FileApprover(IApprovalWriter writer, IApprovalNamer namer) { this.writer = writer; this.namer = namer; }
public FileApprover(IApprovalWriter writer, IApprovalNamer namer, bool normalizeLineEndingsForTextFiles) { this.writer = writer; this.namer = namer; this.normalizeLineEndingsForTextFiles = normalizeLineEndingsForTextFiles; }
public FileApprover(IApprovalWriter writer, IApprovalNamer namer) : this(writer, namer, false) { }
private static IApprovalApprover GetDefaultApprover(IApprovalWriter writer, IApprovalNamer namer, bool shouldIgnoreLineEndings) { return(defaultApproverCreator(writer, namer, shouldIgnoreLineEndings)); }
public static void Approve(IApprovalWriter writer, IApprovalNamer namer, IApprovalFailureReporter reporter) { Core.Approvals.Approve(new FileApprover(writer, namer), reporter); }
public ImageFileApprover(IApprovalWriter writer, IApprovalNamer namer, bool normalizeLineEndingsForTextFiles = false) : base(writer, namer, normalizeLineEndingsForTextFiles) { }
public ZipApprover(IApprovalWriter writer, IApprovalNamer namer, bool deleteOnSuccess) { this.writer = writer; this.namer = namer; this.deleteOnSuccess = deleteOnSuccess; }
private DiffPdfApprover(IApprovalWriter writer, IApprovalNamer namer) { this.writer = writer; this.namer = namer; }