public void HtmlEncode()
{
DefaultHtmlSanitizer target = new DefaultHtmlSanitizer();
Dictionary<string, string[]> elementWhiteList = CreateElementWhiteList();
// Act
string htmlFragment = "<div style=\"background-color: test\">";
string actual = target.GetSafeHtmlFragment(htmlFragment, elementWhiteList);
// Assert
string expected = "<div style=\"background-color: test\"></div>";
StringAssert.AreEqualIgnoringCase(expected, actual);
}