Пример #1
0
        public void GivenIdenticalStringsWithPunctuationShouldCompareEqual()
        {
            var one = "This isn't something";
            var two = "This isn-t something.";

            var comparer = new IgnorePunctuationComparer();

            Assert.True(comparer.Equals(one, two));
        }
Пример #2
0
        public void GivenIdenticalStringsWithCaseDifferenceAndPunctuationShouldCompareEqual()
        {
            var one = "ThiS iSn'T soMething";
            var two = "This isnt some-thing.";

            var comparer = new IgnorePunctuationComparer();

            Assert.True(comparer.Equals(one, two));
        }