BooLangStudioSpecs.StringParsing.ExcludeStringMatcherTests.MatchIndexIsCorrectlyOffsetWhenUsingStartIndex C# (CSharp) Method

MatchIndexIsCorrectlyOffsetWhenUsingStartIndex() private method

private MatchIndexIsCorrectlyOffsetWhenUsingStartIndex ( ) : void
return void
        public void MatchIndexIsCorrectlyOffsetWhenUsingStartIndex()
        {
            string source = "Some St!ring";
            var matcher = new ExcludeStringMatcher(source);

            matcher.SetStartIndex(5);

            Assert.Equal(7, matcher.FindNextIndex('!'));
        }