FindNextIndex() public method

public FindNextIndex ( char value ) : int?
value char
return int?
        public void FindsAMatchWhenThereIsOne()
        {
            string source = "Some!String";
            var matcher = new ExcludeStringMatcher(source);

            Assert.Equal(4, matcher.FindNextIndex('!'));
        }
        public void DoesntFindMatchIfMatchIsInsideStringLiteral()
        {
            string source = "Some \"!\" String";
            var matcher = new ExcludeStringMatcher(source);

            Assert.Null(matcher.FindNextIndex('!'));
        }
        public void DoesntFindAMatchIfThereIsntOne()
        {
            string source = "SomeString";
            var matcher = new ExcludeStringMatcher(source);

            Assert.Null(matcher.FindNextIndex('!'));
        }
        public void MatchIndexIsCorrectlyOffsetWhenUsingStartIndex()
        {
            string source = "Some St!ring";
            var matcher = new ExcludeStringMatcher(source);

            matcher.SetStartIndex(5);

            Assert.Equal(7, matcher.FindNextIndex('!'));
        }
        public void DoesntFindAMatchWhenMatchIsBeforeStartIndex()
        {
            string source = "Some!String";
            var matcher = new ExcludeStringMatcher(source);

            matcher.SetStartIndex(5);

            Assert.Null(matcher.FindNextIndex('!'));
        }