Ejemplo n.º 1
0
 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&para;<br></span><del style=\"background:#ffe6e6;\">&lt;B&gt;b&lt;/B&gt;</del><ins style=\"background:#e6ffe6;\">c&amp;d</ins>",
       dmp.DiffPrettyHtml(diffs));
 }