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")); }
public void WhenTextIsAbc_ShouldAlwaysReturnAbc() { var htmlText = new HtmlText("abc"); htmlText.ToHtml().ToHtmlString().Should().Be("abc"); }