Пример #1
0
        public void ChecIfTextMatch()
        {
            var choice = new Choice(new Range('a', 'z'));

            Assert.True(choice.Match("b").Success());
        }
Пример #2
0
        public void LookIfTextMatchWithGivenRangeUsingAnEmptyString()
        {
            var choice = new Choice(new Range('e', 'z'));

            Assert.False(choice.Match("").Success());
        }
Пример #3
0
        public void ChecIfCharsFromATextAreInRange()
        {
            var choice = new Choice(new Range('c', 'z'));

            Assert.True(choice.Match("def").Success());
        }
Пример #4
0
        public void LookIfTextMatchWithGivenRangeUsingAStringWhoIsNotInRange()
        {
            var choice = new Choice(new Range('e', 'z'));

            Assert.False(choice.Match("1ef").Success());
        }
Пример #5
0
        public void ChecIfCharIsInRange()
        {
            var choice = new Choice(new Range('c', 'z'));

            Assert.False(choice.Match("b").Success());
        }