public void Given_non_identical_strings_with_a_common_suffix_then_prefix_length_is_returned(string text1, string text2, int suffixLength) { var sut = new DiffMatchPatch(); sut.DiffCommonSuffix(text1, text2).Should().Be(suffixLength); }
public void Given_identical_strings_common_suffix_length_is_length_of_whole_string(string input) { var sut = new DiffMatchPatch(); sut.DiffCommonSuffix(input, input).Should().Be(input.Length); }
public void Given_different_strings_common_suffix_length_is_zero(string text1, string text2) { var sut = new DiffMatchPatch(); sut.DiffCommonSuffix(text1, text2).Should().Be(0); }