コード例 #1
0
        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));
        }
コード例 #2
0
        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));
        }