Пример #1
0
 public void ToHtml_WhenTextIsAbc_ShouldAlwaysReturnAbc()
 {
     var htmlText = new HtmlText("abc");
       Assert.That(htmlText.ToHtml(TagRenderMode.EndTag).ToString(), Is.EqualTo("abc"));
       Assert.That(htmlText.ToHtml(TagRenderMode.StartTag).ToString(), Is.EqualTo("abc"));
       Assert.That(htmlText.ToHtml(TagRenderMode.SelfClosing).ToString(), Is.EqualTo("abc"));
       Assert.That(htmlText.ToHtml(TagRenderMode.Normal).ToString(), Is.EqualTo("abc"));
       Assert.That(htmlText.ToHtml().ToString(), Is.EqualTo("abc"));
 }
Пример #2
0
        public void ToHtml_WhenTextIsAbc_ShouldAlwaysReturnAbc()
        {
            var htmlText = new HtmlText("abc");

            Assert.That(htmlText.ToHtml(TagRenderMode.EndTag).ToString(), Is.EqualTo("abc"));
            Assert.That(htmlText.ToHtml(TagRenderMode.StartTag).ToString(), Is.EqualTo("abc"));
            Assert.That(htmlText.ToHtml(TagRenderMode.SelfClosing).ToString(), Is.EqualTo("abc"));
            Assert.That(htmlText.ToHtml(TagRenderMode.Normal).ToString(), Is.EqualTo("abc"));
            Assert.That(htmlText.ToHtml().ToString(), Is.EqualTo("abc"));
        }
Пример #3
0
            public void WhenTextIsAbc_ShouldAlwaysReturnAbc()
            {
                var htmlText = new HtmlText("abc");

                htmlText.ToHtml().ToHtmlString().Should().Be("abc");
            }