Exemplo n.º 1
0
            public void GetRegion2_WithWordContainingOnlyRegion1_ProvidesRangeWithLength0()
            {
                // Arrange
                const string word    = "beauty";
                var          stemmer = new PortersStemmer();

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

                // Assert
                Assert.AreEqual(0, actual - word.Length);
            }
Exemplo n.º 2
0
            public void GetRegion2_WithWordContainingRegion1AndRegion2_ProvidesCorrectRangeForRegion2()
            {
                // Arrange
                const string word    = "beautiful";
                var          stemmer = new PortersStemmer();

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

                // Assert
                Assert.AreEqual(7, actual);
            }