AspUnitRunner.Tests.Core.Html.TestHtmlCollection.Indexer_1_should_get_expected_element C# (CSharp) Method

Indexer_1_should_get_expected_element() private method

private Indexer_1_should_get_expected_element ( ) : void
return void
        public void Indexer_1_should_get_expected_element()
        {
            var elements = new IHtmlElement[] {
                new HtmlElement { TagName = "p", InnerHtml = "first" },
                new HtmlElement { TagName = "p", InnerHtml = "second" }
            };
            var collection = new HtmlCollection(elements);

            Assert.That(collection[1], Is.EqualTo(elements[1])
                .Using(new HtmlElementEqualityComparer()));
        }