public void TestMultipleImages() { string image1Path = Path.Combine(AppDomain.CurrentDomain.BaseDirectory, "test_files\\images\\image.png"); string image2Path = Path.Combine(AppDomain.CurrentDomain.BaseDirectory, "test_files\\images\\image.jpg"); byte[] image1 = File.ReadAllBytes(image1Path); byte[] image2 = File.ReadAllBytes(image2Path); PdfConverter converter = new PdfConverter(); byte[] pdf = converter.ConvertImages(new Dictionary <string, byte[]>() { { Path.GetFileName(image1Path), image1 }, { Path.GetFileName(image2Path), image2 } }, new ImageConversionOptions()); Assert.IsNotNull(pdf); Assert.IsTrue(pdf.Length > 0); }