public void GetElementsByTagName_Test(HtmlContainer container, string tagName, IReadOnlyList <HtmlElement> expectedElements) { // Act var elements = container.GetElementsByTagName(tagName).ToArray(); // Assert Assert.That(elements, Is.EqualTo(expectedElements)); }
public void GetElementsByTagName_Test(HtmlContainer container, string tagName, IReadOnlyList <HtmlElement> expected) { // Act var actual = container.GetElementsByTagName(tagName).ToArray(); // Assert Assert.That(actual, Is.EqualTo(expected).Using(HtmlEntityEqualityComparer.Instance)); }