public async void Read_OneSavedStringEntry_ReturnsContent() { var entry = new Uri("fake://a"); const string content = "some content"; await storage.Save(entry, content); var result = await storage.Read(entry); result.Should().Be(content); }
public async void Crawl_SinglePageSite_SavesPageContent() { var startUri = new MockUri("a"); const string content = "start page content"; SetupSession(new MockPage(startUri, content)); await crawlSession.Crawl(); var savedContent = await storage.Read(storage.Entries.First()); storage.Entries.Should().Contain(new Uri("", UriKind.Relative)); savedContent.Should().Be(content); }