Esempio n. 1
0
        public void DoesNotFindThreeGroupsLiteral()
        {
            var pat    = "a (b) c (d) e";
            var groups = GenUtils.RegexFindGroups("a b c D e", pat);

            Assert.AreNotEqual(3, groups.Count);
        }
Esempio n. 2
0
        public void DoesNotFindThreeGroupsAbstract()
        {
            var pat    = @"a (http://.+\s*) c (\d+) e";
            var groups = GenUtils.RegexFindGroups("a ftp://foo.com?x=y c 19423 e", pat);

            Assert.AreNotEqual(3, groups.Count);
        }
Esempio n. 3
0
        public void FindsThreeGroupsLiteral()
        {
            var pat    = "a (b) c (d) e";
            var groups = GenUtils.RegexFindGroups("a b c d e", pat);

            Assert.AreEqual(3, groups.Count);
        }