Skip to content

Commit

Permalink
update unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
zlzforever committed Feb 15, 2017
1 parent 2337a22 commit 78a3630
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/DotnetSpider2.Core.Test/Processor/TargetUrlTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ public void UrlVerifyAndExtract1()
page.Content = html;

CnblogsProcessor1 processor = new CnblogsProcessor1();
processor.Site = new Site();
processor.Process(page);

Assert.True(page.ResultItems.GetResultItem("test"));
Expand Down Expand Up @@ -65,6 +66,7 @@ public void UrlVerifyAndExtract2()
page.Content = html;

CnblogsProcessor2 processor = new CnblogsProcessor2();
processor.Site = new Site();
processor.Process(page);

Assert.True(page.ResultItems.GetResultItem("test"));
Expand Down Expand Up @@ -124,6 +126,7 @@ public void UrlVerifyAndExtract4()
page.Content = html;

CnblogsProcessor4 processor = new CnblogsProcessor4();
processor.Site = new Site();
processor.Process(page);

Assert.True(page.ResultItems.GetResultItem("test"));
Expand Down

0 comments on commit 78a3630

Please sign in to comment.