public void DiffPrettyHtmlTest() { diff_match_patchTest dmp = new diff_match_patchTest(); // Pretty print. List<Diff> diffs = new List<Diff> { new Diff(Operation.EQUAL, "a\n"), new Diff(Operation.DELETE, "<B>b</B>"), new Diff(Operation.INSERT, "c&d")}; Assert.AreEqual("<span>a¶<br></span><del style=\"background:#ffe6e6;\"><B>b</B></del><ins style=\"background:#e6ffe6;\">c&d</ins>", dmp.DiffPrettyHtml(diffs)); }