public void TakeFilterThrowsExceptionIfStringIsLessThanRequestedChars() { var filter = new TakeFilter(4); Assert.Throws <InvalidOperationException>(() => filter.Apply("Foo")); }
public void TakeFilterTakesTheFirstNCharacters() { var filter = new TakeFilter(1); Assert.Equal("F", filter.Apply("Foo")); }