public void ShouldNotFailOnMultipleDisposeWithoutEvenUsingOnceCalls()
        {
            var postscriptValidator = new PostScriptValidator.PostScriptValidator();

            postscriptValidator.Dispose();
            postscriptValidator.Dispose();
        }
 public void ShouldDetectCompliantPostscript()
 {
     using (var postscriptValidator = new PostScriptValidator.PostScriptValidator())
     {
         var result = postscriptValidator.Validate(@"./TestData/valid.ps");
         Assert.True(result);
     }
 }
        public void ShouldNotFailOnMultipleDisposeCalls()
        {
            var postscriptValidator = new PostScriptValidator.PostScriptValidator();

            postscriptValidator.Validate(@"./TestData/valid.ps");
            postscriptValidator.Dispose();
            postscriptValidator.Dispose();
        }
 public void ShouldEmbeddFonts()
 {
     using (var postscriptValidator = new PostScriptValidator.PostScriptValidator())
     {
         using (var pdfAValidator = new PdfAValidator.PdfAValidator())
         {
             var outputName = Guid.NewGuid().ToString() + ".pdf";
             postscriptValidator.EmbedFonts(@"./TestData/FontsNotEmbedded.pdf", outputName);
             Assert.That(File.Exists(outputName));
             var resultOutcome = pdfAValidator.ValidateWithDetailedReport(outputName);
             Assert.False(resultOutcome.Jobs.Job.ValidationReport.Details.Rule.Any(_ => _.Clause == "6.3.5"));
             File.Delete(outputName);
         }
     }
 }