private ImageResizeProcessor GetProcessor(MediaDimension resizeBy, int size, ImageSaveFormat format, bool overwrite)
        {
            ImageResizeProcessor processor = new ImageResizeProcessor();

            processor.SetParameter("NewPath", GetCurrentTestResultsFilePath("out" + GetExtension(format)));
            processor.SetParameter("Format", format);
            processor.SetParameter("ResizeBy", resizeBy);
            processor.SetParameter("Size", size);
            processor.SetParameter("Overwrite", overwrite);
            return(processor);
        }
        private void ResizeBeetleSuccess(MediaDimension resizeBy, int size, ImageSaveFormat format)
        {
            ImageResizeProcessor processor = GetProcessor(resizeBy, size, format, false);

            processor.Init(RunInfo);
            ProcessingResult result = processor.Process(GetTestFile("beetle.jpg"),
                                                        MatchResultType.Yes, new string[0], new FileInfo[0], ProcessInput.OriginalFile,
                                                        CancellationToken.None);

            processor.Cleanup();
            Assert.AreEqual(ProcessingResultType.Success, result.Type);
            Assert.AreEqual(1, result.OutputFiles.Length);
        }