Esempio n. 1
0
        private void FindCharDiffs(string oldText, string newText, params LcsDiff[] expected)
        {
            var diffs = LongestCommonSequence <char> .Find(oldText.ToCharArray(), newText.ToCharArray(), (c1, c2) => c1 == c2);

            AssertUtil.ArrayEquals(expected, diffs.ToArray());
        }
        private void FindCharDiffs(string oldText, string newText, params LcsDiff[] expected)
        {
            var diffs = LongestCommonSequence <char> .Find(oldText.ToCharArray(), newText.ToCharArray(), (c1, c2) => c1 == c2);

            diffs.Should().Equal(expected);
        }