Esempio n. 1
0
        public void SkipFilterThrowsExceptionIfStringIsLessThanRequestedChars()
        {
            var filter = new SkipFilter(4);

            Assert.Throws <InvalidOperationException>(() => filter.Apply("Foo"));
        }
Esempio n. 2
0
        public void SkipFilterSkipsTheFirstNCharacters()
        {
            var filter = new SkipFilter(1);

            Assert.Equal("oo", filter.Apply("Foo"));
        }