Пример #1
0
        public void ParsePage_product_list_found_test()
        {
            VerkkokauppaParser target = new VerkkokauppaParser();
              HtmlDocument result = new HtmlDocument();
              result.Load("productlist.htm");
              string parentCategory = "Pelikuullokkeet";
              target.FoundProductLink += new EventHandler<ParserEventArgs>(target_FoundProductLink);

              target.ParseCategoryPage(result, parentCategory);
              Assert.IsTrue(productCount > 10);
        }