public void HtmlGetAttachmentPageTest() { var file = TestFiles.WithAttachmentMsg; var pageNumber = 1; var request = new HtmlGetAttachmentPageRequest { FileName = file.FileName, AttachmentName = file.AttachmentName, PageNumber = pageNumber, ResourcePath = null, IgnoreResourcePathInResources = null, EmbedResources = null, RenderComments = null, RenderHiddenPages = null, Password = null, AttachmentPassword = file.AttachmentPassword, DefaultFontName = null, FontsFolder = null, Folder = file.Folder, Storage = null, }; var response = ViewerApi.HtmlGetAttachmentPage(request); Assert.IsInstanceOf <System.IO.Stream>(response, "Expected response type is System.IO.Stream"); Assert.IsTrue(response.Length > 0); }