Beispiel #1
0
        public void TokenEqualityTest()
        {
            var tokenInstance         = new Token("instance");
            var tokenEqualInstance    = new Token("instance");
            var tokenNotEqualInstance = new Token("notInstance");

            HelpersTest.AssertEquality(tokenInstance, tokenEqualInstance, tokenNotEqualInstance);
        }
Beispiel #2
0
 public void TrigramEqualityTest()
 {
     HelpersTest.AssertEquality(new Trigram("abc"), new Trigram("abc"), new Trigram("abx"));
 }
Beispiel #3
0
 public void UnigramEqualityTest()
 {
     HelpersTest.AssertEquality(new Unigram("a"), new Unigram("a"), new Unigram("b"));
 }
Beispiel #4
0
 public void BigramEqualityTest()
 {
     HelpersTest.AssertEquality(new Bigram("ab"), new Bigram("ab"), new Bigram("ac"));
 }