public void ImageCreateAttachmentPagesCacheTest() { var file = TestFiles.WithAttachmentPdf; var request = new ImageCreateAttachmentPagesCacheRequest { FileName = file.FileName, AttachmentName = file.AttachmentName, ImageOptions = new ImageOptions { AttachmentPassword = file.AttachmentPassword }, FontsFolder = null, Folder = file.Folder, Storage = null }; var response = ViewerApi.ImageCreateAttachmentPagesCache(request); Assert.AreEqual(1, response.Pages.Count); Assert.AreEqual("with-attachment.pdf", response.FileName); Assert.AreEqual("password-protected.docx", response.AttachmentName); Assert.AreEqual("pdf\\pdf", response.Folder); }