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); }
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); }