Exemple #1
0
        static async Task Main(string[] args)
        {
            var TestLinks = new LinksReader();
            Console.WriteLine("Write your link \nExamples: http://google.com, http://dl.nure.ua, http://youtube.com/watch?v=sFrubDwkh70");
            TestLinks.Link.WebAddress = Console.ReadLine();

            var htmlLinks = TestLinks.CompareHtml(TestLinks.HtmlReadLinks().Result, TestLinks.XmlReadLinks().Result);
            var xmlLinks = TestLinks.CompareXml(TestLinks.XmlReadLinks().Result, TestLinks.HtmlReadLinks().Result);
            
            LinksReader.Output(htmlLinks, "Html");
            LinksReader.Output(xmlLinks, "Xml");

            TestLinks.OutputElapseTime(htmlLinks);
            TestLinks.OutputElapseTime(xmlLinks);
            
            Console.ReadKey();
        }
Exemple #2
0
        static async Task Main(string[] args)
        {
            var TestLinks = new LinksReader();

            TestLinks.WebAddress = Console.ReadLine();
            var xmlLinks  = TestLinks.XmlReadLinks();
            var htmlLinks = TestLinks.HtmlReadLinks();

            TestLinks.Compare(htmlLinks.Result, xmlLinks.Result);
            TestLinks.ElapseTime(htmlLinks.Result);
            TestLinks.ElapseTime(xmlLinks.Result);

            Console.ReadKey();
        }