Example #1
0
            public void EndInShortSyllable_TestingDisturb_IsCountedAsShort()
            {
                // Arrange
                const string word    = "disturb";
                var          stemmer = new PortersStemmer();

                // Act
                var actual = stemmer.EndsInShortSyllable(word);

                // Assert
                Assert.IsFalse(actual);
            }
Example #2
0
            public void EndInShortSyllable_TestingEntrap_IsCountedAsShort()
            {
                // Arrange
                const string word    = "entrap";
                var          stemmer = new PortersStemmer();

                // Act
                var actual = stemmer.EndsInShortSyllable(word);

                // Assert
                Assert.IsTrue(actual);
            }