public void CrawlIconRestore()
        {
            string searchResult = @"http://download.cnet.com/Icon-Restore/3000-2072_4-10163499.html";
            string expected     = @"icon_restore";

            var uri = DownloadLinkFinder.GetDownloadLink(searchResult).Result;

            Assert.IsTrue(uri.ToString().Contains(expected));
        }
        public void Crawl7Zip()
        {
            string searchResult = @"http://www.7-zip.org/download.html";
            string expected     = @"7z1505.exe";

            var uri = DownloadLinkFinder.GetDownloadLink(searchResult).Result;

            Assert.IsTrue(uri.ToString().Contains(expected));
        }
        public void NotepadPlusPlus4()
        {
            string searchResult = @"http://download.cnet.com/Notepad/3000-2352_4-10327521.html&sa=U&ved=0CDsQFjAHahUKEwjHhOOTyP_GAhWTMogKHYyfDLc&usg=AFQjCNHsZQSNDrak4OrD5fTwyPAzuFTUGA";
            string expected     = @"npp.6.8.1.Installer.exe";

            var uri = DownloadLinkFinder.GetDownloadLink(searchResult).Result;

            Assert.IsTrue(uri.ToString().Contains(expected));
        }
        public void NotepadPlusPlus3()
        {
            string searchResult = @"http://notepad-plus.en.softonic.com/download";
            string expected     = @"npp-6-8-Installer.exe";

            var uri = DownloadLinkFinder.GetDownloadLink(searchResult).Result;

            Assert.IsTrue(uri.ToString().Contains(expected));
        }
        public void NotepadPlusPlus2()
        {
            string searchResult = @"http://download.cnet.com/Notepad/3000-2352_4-10327521.html";
            string expected     = @"npp.6.8.1.Installer.exe";

            var uri = DownloadLinkFinder.GetDownloadLink(searchResult).Result;

            Assert.IsTrue(uri.ToString().Contains(expected));
        }
        public void NotepadPlusPlus()
        {
            string searchResult = @"https://notepad-plus-plus.org/download/";
            string expected     = @"https://notepad-plus-plus.org/repository/6.x/6.8.1/npp.6.8.1.Installer.exe";

            var uri = DownloadLinkFinder.GetDownloadLink(searchResult).Result;

            Assert.AreEqual(new Uri(expected), uri);
        }