public void Core_Text_Cleanser_HtmlUnsafe() { var safeHtml = string.Empty; var cleanser = new HtmlUnsafeCleanser(unsafeHtml); safeHtml = cleanser.Cleanse(); Assert.IsTrue(safeHtml.Contains(unsafeTag1.SubstringLeft(6)) == false, "Did not work."); Assert.IsTrue(safeHtml.Contains(safeTag1) == true, "Did not work."); }
public void Text_Cleanser_HtmlUnsafe() { var safeHtml = TypeExtension.DefaultString; var cleanser = new HtmlUnsafeCleanser(unsafeHtml); safeHtml = cleanser.Cleanse(); Assert.IsTrue(safeHtml.Contains(unsafeTag1.SubstringLeft(6)) == false, "Did not work."); Assert.IsTrue(safeHtml.Contains(safeTag1) == true, "Did not work."); }