Exemplo n.º 1
0
        public void GetNumberOfPages_InputIsPsFile_DoesNotCallPdfProcessor()
        {
            var filename = "pdffile.ps";

            _directConversionHelper.GetNumberOfPages(filename);

            _pdfProcessor.DidNotReceive().GetNumberOfPages(Arg.Any <string>());
        }
Exemplo n.º 2
0
        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);
        }