nicTest.diff_match_patchTest.diff_prettyHtmlTest C# (CSharp) Method

diff_prettyHtmlTest() private method

private diff_prettyHtmlTest ( ) : void
return void
    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>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.diff_prettyHtml(diffs));
    }