Exemplo n.º 1
0
        public void TestemptyOrNullString(string text, string remaining)
        {
            var range = new Ranges('g', 'k');
            var match = range.Match(text);

            Assert.False(match.Success());
            Assert.Equal(match.RemainingText(), remaining);
        }
Exemplo n.º 2
0
        public void TestMatchRange(string text, string remaining)
        {
            var range = new Ranges('b', 'g');
            var match = range.Match(text);

            Assert.True(match.Success());
            Assert.Equal(match.RemainingText(), remaining);
        }