public void diff_prettyHtmlTest() { var dmp = new diff_match_patchTest(); // Pretty print. var 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.diff_prettyHtml(diffs)); }
public void diff_prettyHtmlTest() { 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 TITLE=\"i=0\">a¶<BR></SPAN><DEL STYLE=\"background:#FFE6E6;\" TITLE=\"i=2\"><B>b</B></DEL><INS STYLE=\"background:#E6FFE6;\" TITLE=\"i=2\">c&d</INS>", dmp.diff_prettyHtml(diffs)); }