Ejemplo n.º 1
0
        public void HeadingsProduceCorrectHtml()
        {
            HtmlDocument doc = TestHelper.Render <ASP._Views_Tests_Typography_cshtml>();

            Assert.AreEqual(@"<h1>Heading 1</h1>", doc.GetElementbyId("test-heading-levels").ChildNodes["h1"].CollapsedOuterHtml());
            Assert.AreEqual(@"<h2>Heading 2</h2>", doc.GetElementbyId("test-heading-levels").ChildNodes["h2"].CollapsedOuterHtml());
            Assert.AreEqual(@"<h3>Heading 3</h3>", doc.GetElementbyId("test-heading-levels").ChildNodes["h3"].CollapsedOuterHtml());
            Assert.AreEqual(@"<h4>Heading 4</h4>", doc.GetElementbyId("test-heading-levels").ChildNodes["h4"].CollapsedOuterHtml());
            Assert.AreEqual(@"<h5>Heading 5</h5>", doc.GetElementbyId("test-heading-levels").ChildNodes["h5"].CollapsedOuterHtml());
            Assert.AreEqual(@"<h6>Heading 6</h6>", doc.GetElementbyId("test-heading-levels").ChildNodes["h6"].CollapsedOuterHtml());
        }