Ejemplo n.º 1
0
 public void CreateWriterAndAddAllPagesTest()
 {
     using (var temp = new TempFile())
     {
         using (Pdf pdf = Pdf.CreateWriter(temp.Path))
         {
             using (Pdf other = Pdf.CreateReader(TestsConfiguration.Instance.Pdf2Path))
             {
                 pdf.AddAllPages(other);
                 Assert.AreEqual(TestsConfiguration.Instance.Pdf2Pages, pdf.GetPagesAmount());
             }
         }
     }
 }