public async Task MutualFundScraping_02() { var sut = new EtfQuoteScraper(); var htmlDocument = new HtmlDocument(); var fileText = await File.ReadAllTextAsync("TestPages\\Etf02.txt"); htmlDocument.LoadHtml(fileText); var quoteData = sut.Scrape(htmlDocument, new CultureInfo("es-ES")); quoteData.Quote.Should().Be(57.8f); quoteData.Date.Should().Be("17/11/2017"); }
public void ShouldNotHandleIncorrectFundType() { var sut = new EtfQuoteScraper(); sut.HandlesFundType("mf").Should().BeFalse(); }
public void ShouldHandleCorrectFundType() { var sut = new EtfQuoteScraper(); sut.HandlesFundType("etf").Should().BeTrue(); }