public void HtmlGetInfoFromUrlReturnsInvalidUrlTest()
        {
            var request = new HtmlGetDocumentInfoFromUrlRequest
            {
                Url               = "invalid-url",
                FileName          = null,
                Password          = null,
                RenderComments    = null,
                RenderHiddenPages = null,
                Folder            = null,
                Storage           = null
            };

            var ex = Assert.Throws <ApiException>(() =>
            {
                ViewerApi.HtmlGetDocumentInfoFromUrl(request);
            });

            Assert.AreEqual("Can't parse specified URL 'invalid-url'.", ex.Message);
        }
        public void HtmlGetDocumentInfoFromUrlTest()
        {
            var file = TestFiles.FromUrlOnePageDocx;

            var request = new HtmlGetDocumentInfoFromUrlRequest
            {
                Url               = file.Url,
                FileName          = file.FileName,
                Password          = null,
                RenderComments    = null,
                RenderHiddenPages = null,
                Folder            = FromUrlFolder,
                Storage           = null
            };

            var response = ViewerApi.HtmlGetDocumentInfoFromUrl(request);

            Assert.AreEqual("one-page.docx", response.FileName);
            Assert.AreEqual(".docx", response.Extension);
            Assert.AreEqual(1, response.Pages.Count);
        }