Пример #1
0
        public void CanChenNonLemma()
        {
            Lematizator   lematizator = new Lematizator();
            List <string> words       = new List <string>()
            {
                "lists", "sang", "analyzed"
            };

            bool result = !lematizator.IsLemma(words[0]) &&
                          !lematizator.IsLemma(words[1]) && !lematizator.IsLemma(words[2]);

            Assert.IsTrue(result);
        }
Пример #2
0
        public void CanCheckLemma()
        {
            Lematizator   lematizator = new Lematizator();
            List <string> words       = new List <string>()
            {
                "or", "typical", "song"
            };

            bool result = lematizator.IsLemma(words[0]) &&
                          lematizator.IsLemma(words[1]) && lematizator.IsLemma(words[2]);

            Assert.IsTrue(result);
        }