public void GetRegion2_WithWordContainingNeitherRegion_ProvidesRangeWithLength0() { // Arrange const string word = "beau"; var stemmer = new SnowballPorterStemmer(); // Act var actual = stemmer.GetRegion2(word); // Assert Assert.AreEqual(0, actual - word.Length); }
public void GetRegion2_WithWordContainingRegion1AndRegion2_ProvidesCorrectRangeForRegion2() { // Arrange const string word = "beautiful"; var stemmer = new SnowballPorterStemmer(); // Act var actual = stemmer.GetRegion2(word); // Assert Assert.AreEqual(7, actual); }