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;
        }
Beispiel #2
0
 public void CheckDeviceIndependentDefaultParameters()
 {
     _parameterStrings = new Collection <string>(_txtDevice.GetGhostScriptParameters(_ghostscriptVersion));
     ParametersTestHelper.CheckDefaultParameters(_parameterStrings);
 }
Beispiel #3
0
 public void SetUp()
 {
     _txtDevice          = ParametersTestHelper.GenerateDevice(OutputFormat.Txt);
     _ghostscriptVersion = ParametersTestHelper.GhostscriptVersionDummie;
 }