示例#1
0
        public void TagHasImplicitClose()
        {
            Assert.AreEqual(HtmlData.tagActionClose, HtmlData.SpecialTagAction("p", "div"));
            Assert.AreEqual(HtmlData.tagActionNothing, HtmlData.SpecialTagAction("p", "b"));
            Assert.AreEqual(HtmlData.tagActionNothing, HtmlData.SpecialTagAction("p", "random"));

            Assert.AreEqual(HtmlData.tagActionClose, HtmlData.SpecialTagAction("td", "tr"));
            Assert.AreEqual(HtmlData.tagActionNothing, HtmlData.SpecialTagAction("td", "div"));

            Assert.AreEqual(HtmlData.tagActionClose, HtmlData.SpecialTagAction("li", "li"));
            Assert.AreEqual(HtmlData.tagActionNothing, HtmlData.SpecialTagAction("li", "ol"));

            Assert.AreEqual(HtmlData.tagActionNothing, HtmlData.SpecialTagAction("random", "random"));
            Assert.AreEqual(HtmlData.tagActionNothing, HtmlData.SpecialTagAction("div", "div"));
        }