コード例 #1
0
        public void GivenIdenticalTokenStringsWithPunctuationShouldCompareEqual()
        {
            var one = new KnownToken("This isn't something", 1);
            var two = new KnownToken("This i-snt something.", 1);

            var comparer = new KnownTokenComparer();

            Assert.True(comparer.Equals(one, two));
        }
コード例 #2
0
        public void GivenIdenticalTokenStringsWithCaseDifferenceAndPunctuationShouldCompareEqual()
        {
            var one = new KnownToken("ThiS iSn'T soMething", 1);
            var two = new KnownToken("This is-nt something.", 1);

            var comparer = new KnownTokenComparer();

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