public void GetNumberOfPages_InputIsPsFile_DoesNotCallPdfProcessor() { var filename = "pdffile.ps"; _directConversionHelper.GetNumberOfPages(filename); _pdfProcessor.DidNotReceive().GetNumberOfPages(Arg.Any <string>()); }
public void RunJob_DoesNotProcessPdf_IfNotRequired() { var jobRunner = BuildJobRunner(); var job = BuildJob(); _pdfProcessor.ProcessingRequired(Arg.Any <ConversionProfile>()).Returns(false); jobRunner.RunJob(job, _outputFileMover); _pdfProcessor.DidNotReceive().ProcessPdf(job); }