public void SetUp()
        {
            _printerStub = MockRepository.GenerateStub <PrinterWrapper>();

            var jobStub = ParametersTestHelper.GenerateJobStub(OutputFormat.Txt);

            jobStub.OutputFiles = new List <string>();
            jobStub.OutputFiles.Add(TestFileDummie);

            var fileStub = MockRepository.GenerateStub <IFile>();

            var osHelperStub = MockRepository.GenerateStub <IOsHelper>();

            osHelperStub.Stub(x => x.WindowsFontsFolder).Return(ParametersTestHelper.WindowsFontsFolderDummie);

            _printingDevice = new PrintingDevice(jobStub, _printerStub, fileStub, osHelperStub);
            _printingDevice.Job.OutputFiles.Add(TestFileDummie);

            _ghostscriptVersion = ParametersTestHelper.GhostscriptVersionDummie;
        }
Example #2
0
 public void CheckDeviceIndependentDefaultParameters()
 {
     _parameterStrings = new Collection <string>(_txtDevice.GetGhostScriptParameters(_ghostscriptVersion));
     ParametersTestHelper.CheckDefaultParameters(_parameterStrings);
 }
Example #3
0
 public void SetUp()
 {
     _txtDevice          = ParametersTestHelper.GenerateDevice(OutputFormat.Txt);
     _ghostscriptVersion = ParametersTestHelper.GhostscriptVersionDummie;
 }