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