public void ParseNoAuthorHtml() { var context = TestUtilites.ExecuteExtractor(HtmlWithNoAuthor, new AuthorsExtractor()); context.Authors .Should() .HaveCount(0); }
public void ParseTwoAuthorHtml() { var context = TestUtilites.ExecuteExtractor(HtmlWithTwoAuthor, new AuthorsExtractor()); context.Authors .Should() .HaveCount(2) .And .Contain("John Smith", "Bill Gates"); }
public void ParseOneAuthorHtml() { var context = TestUtilites.ExecuteExtractor(HtmlWithAuthor, new AuthorsExtractor()); context.Authors .Should() .HaveCount(1) .And .Contain("John Smith"); }