public void diff_commonSuffixTest() { diff_match_patchTest dmp = new diff_match_patchTest(); // Detect any common suffix. // Null case. Assert.AreEqual(0, dmp.DiffCommonSuffix("abc", "xyz")); // Non-null case. Assert.AreEqual(4, dmp.DiffCommonSuffix("abcdef1234", "xyz1234")); // Whole case. Assert.AreEqual(4, dmp.DiffCommonSuffix("1234", "xyz1234")); }