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