public void Given_A_WebPage_Url_Should_Load_WebPage_To_HtmlDocument() { // Arrange const string url = "https://www.google.com/"; // Act var result = _sut.Load(url); // Assert result.Should().NotBeNull(); }
public void Given_A_Card_Profile_WebPage_Url_Should_Extract_Card_CardEffectTypes(string url, string expected) { // Arrange var htmlWebPage = new HtmlWebPage(); var htmlDocument = htmlWebPage.Load(url); // Act var result = _sut.CardEffectTypes(htmlDocument); // Assert result.Should().BeEquivalentTo(expected); }
public void Given_A_Card_Profile_WebPage_Url_Should_Extract_Card_Level(string url, int expected) { // Arrange var htmlWebPage = new HtmlWebPage(); var htmlDocument = htmlWebPage.Load(url); // Act var result = _sut.Level(htmlDocument); // Assert result.Should().Be(expected); }