public void AppendHtml_DoesNotGetEncoded()
    {
        // Arrange
        var tagHelperContent = new DefaultTagHelperContent();

        tagHelperContent.AppendHtml("Hi");

        var writer = new StringWriter();

        // Act
        tagHelperContent.WriteTo(writer, new HtmlTestEncoder());

        // Assert
        Assert.Equal("Hi", writer.ToString());
    }
    public void WriteTo_WritesToATextWriter()
    {
        // Arrange
        var tagHelperContent = new DefaultTagHelperContent();
        var writer           = new StringWriter();

        tagHelperContent.SetContent("Hello ");
        tagHelperContent.Append("World");

        // Act
        tagHelperContent.WriteTo(writer, new HtmlTestEncoder());

        // Assert
        Assert.Equal("HtmlEncode[[Hello ]]HtmlEncode[[World]]", writer.ToString());
    }