Ejemplo n.º 1
0
        public void HtmlCreatePagesCacheTest()
        {
            var file = TestFiles.FourPagesDocx;

            var request = new HtmlCreatePagesCacheRequest
            {
                FileName    = file.FileName,
                HtmlOptions = new HtmlOptions
                {
                    EmbedResources = true
                },
                FontsFolder = null,
                Folder      = file.Folder,
                Storage     = null,
            };

            var response = ViewerApi.HtmlCreatePagesCache(request);

            Assert.AreEqual("four-pages.docx", response.FileName);
            Assert.AreEqual("words\\docx", response.Folder);
            Assert.AreEqual(4, response.Pages.Count);
        }