Exemplo n.º 1
0
        public void TestDiff()
        {
            var src    = new [] { "abcde", "fghij", "klmno", "pqrst", "fguij", "axcye", "wvxyz" };
            var result = cut.FindClosestMatch(src);

            Assert.NotNull(result);
            Assert.That(result.A[result.Position] != result.B[result.Position]);
            Assert.That(result.A == "fghij");
            Assert.That(result.B == "fguij");
            Assert.That(result.Result == "fgij");
        }