Пример #1
0
        public void RawReturnsWrapperMarkup() {
            // Arrange
            HtmlHelper htmlHelper = new HtmlHelper(new ModelStateDictionary());
            string markup = "<b>bold</b>";

            // Act
            IHtmlString markupHtml = htmlHelper.Raw(markup);

            // Assert
            Assert.AreEqual("<b>bold</b>", markupHtml.ToString());
            Assert.AreEqual("<b>bold</b>", markupHtml.ToHtmlString());
        }