Beispiel #1
0
        public void GetTextFromPdfUri()
        {
            var uri     = new Uri("http://www.africau.edu/images/default/sample.pdf");
            var parser  = new UrlExtractor(uri);
            var content = parser.ExtractPlainText();

            Assert.IsFalse(string.IsNullOrEmpty(content));
        }
Beispiel #2
0
        public void GetTextFromWordUri()
        {
            var uri     = new Uri("http://iiswc.org/iiswc2012/sample.doc");
            var parser  = new UrlExtractor(uri);
            var content = parser.ExtractPlainText();

            Assert.IsFalse(string.IsNullOrEmpty(content));
        }
Beispiel #3
0
        public void GetTextFromHtml()
        {
            var uri     = new Uri("https://docs.microsoft.com/en-us/dotnet/api/system.net.webclient.downloadstring?view=net-5.0");
            var parser  = new UrlExtractor(uri);
            var content = parser.ExtractPlainText();

            Assert.IsFalse(string.IsNullOrEmpty(content));
        }