public void AnalyzePost_TestExtractAuthor5()
        {
            HtmlWeb htmlWeb = new HtmlWeb();

            HtmlDocument htmlDocument = htmlWeb.Load("http://pollitika.com/tko-drma-hac-om");

            string author, authorHtml;

            PostAnalyzer.ScrapePostAuthor(htmlDocument.DocumentNode, out author, out authorHtml);

            Assert.AreEqual("2bbc", author);
            Assert.AreEqual("2bbc", authorHtml);
        }
        public void AnalyzePost_TestExtractAuthor6()
        {
            HtmlWeb htmlWeb = new HtmlWeb();

            HtmlDocument htmlDocument = htmlWeb.Load("http://pollitika.com/sramim-se");

            string author, authorHtml;

            PostAnalyzer.ScrapePostAuthor(htmlDocument.DocumentNode, out author, out authorHtml);

            Assert.AreEqual("drlesar", author);
            Assert.AreEqual("drlesar", authorHtml);
        }
        public void AnalyzePost_TestExtractAuthor3()
        {
            HtmlWeb htmlWeb = new HtmlWeb();

            HtmlDocument htmlDocument = htmlWeb.Load("http://pollitika.com/pollitika-kao-quotevo-siljim-drvo-da-ubijem-meduquot");

            string author, authorHtml;

            PostAnalyzer.ScrapePostAuthor(htmlDocument.DocumentNode, out author, out authorHtml);

            Assert.AreEqual("Mali Hans", author);
            Assert.AreEqual("mali-hans", authorHtml);
        }
        public void AnalyzePost_TestExtractAuthor2()
        {
            HtmlWeb htmlWeb = new HtmlWeb();

            HtmlDocument htmlDocument = htmlWeb.Load("http://pollitika.com/kukavicje-jaje");

            string author, authorHtml;

            PostAnalyzer.ScrapePostAuthor(htmlDocument.DocumentNode, out author, out authorHtml);

            Assert.AreEqual("Rebel", author);
            Assert.AreEqual("rebel", authorHtml);
        }
        public void AnalyzePost_TestExtractAuthor1()
        {
            HtmlWeb htmlWeb = new HtmlWeb();

            HtmlDocument htmlDocument = htmlWeb.Load("http://pollitika.com/hrvatsko-zdravstvo-i-sovjetska-automobilska-industrija");

            string author, authorHtml;

            PostAnalyzer.ScrapePostAuthor(htmlDocument.DocumentNode, out author, out authorHtml);

            Assert.AreEqual("žaki", author);
            Assert.AreEqual("zaki", authorHtml);
        }
        public void AnalyzePost_TestExtractAuthor8()
        {
            HtmlWeb htmlWeb = new HtmlWeb();

            HtmlDocument htmlDocument = htmlWeb.Load("http://pollitika.com/zvoni-radikalnom-naden-kratki-spoj-u-mozgu ");

            string author, authorHtml;

            PostAnalyzer.ScrapePostAuthor(htmlDocument.DocumentNode, out author, out authorHtml);

            Assert.AreEqual("Zvone Radikalni", author);
            Assert.AreEqual("zvone-radikalni", authorHtml);
        }
        public void AnalyzePost_TestExtractAuthor7()
        {
            HtmlWeb htmlWeb = new HtmlWeb();

            HtmlDocument htmlDocument = htmlWeb.Load("http://pollitika.com/nered-na-trzi-tu-dobra-stvar");

            string author, authorHtml;

            PostAnalyzer.ScrapePostAuthor(htmlDocument.DocumentNode, out author, out authorHtml);

            Assert.AreEqual("Simun", author);
            Assert.AreEqual("simun", authorHtml);
        }