Example #1
0
 public void InvalidIngestPageTest()
 {
     _hackerPageMock.Setup(x => x.IngestPage(null)).Returns(false);
     _hackerPage = _hackerPageMock.Object;
     Assert.IsFalse(_hackerPage.IngestPage(null), "IngestPage failed.");
 }
Example #2
0
 public void ValidIngestPageTest()
 {
     _hackerPageMock.Setup(x => x.IngestPage(It.IsAny <HtmlDocument>())).Returns(true);
     _hackerPage = _hackerPageMock.Object;
     Assert.IsTrue(_hackerPage.IngestPage(new HtmlDocument()), "IngestPage failed.");
 }