public void TestMultipleDocuments() { byte[] testFile1 = File.ReadAllBytes(Path.Combine(AppDomain.CurrentDomain.BaseDirectory, "test_files\\documents\\document.docx")); byte[] testFile2 = File.ReadAllBytes(Path.Combine(AppDomain.CurrentDomain.BaseDirectory, "test_files\\documents\\document.docx")); Dictionary <string, byte[]> files = new Dictionary <string, byte[]>(); files.Add("document1.docx", testFile1); files.Add("document2.docx", testFile2); PdfConverter converter = new PdfConverter(); byte[] pdf = converter.ConvertFiles(files, new ConversionOptions()); Assert.IsNotNull(pdf); Document doc = new Document(); PdfReader reader = new PdfReader(pdf); int pages = reader.NumberOfPages; byte[] page1 = reader.GetPageContent(1); byte[] page2 = reader.GetPageContent(2); doc.Close(); Assert.IsTrue(pages == 2); Assert.AreEqual(page1.Length, page1.Length); }