Exemplo n.º 1
0
        public void OneMatch()
        {
            Regex2 regex = new Regex2("thing", AlgorithmType);
            Match2 match = regex.Match("Something or other");

            Assert.AreEqual(Factory.CreateMatch(4, 5, "thing"), match);
        }
        public void OneMatch()
        {
            Regex2 regex = new Regex2("thing", AlgorithmType);
            Match2 match = regex.Match("Something or other");

            Assert.AreEqual(Factory.CreateMatch(4, 5, "thing"), match);
        }
Exemplo n.º 3
0
        public void NoMatch()
        {
            Regex2 regex = new Regex2("xyz", AlgorithmType);
            Match2 match = regex.Match("Something or other");

            Assert.AreEqual(Match2.Empty, match);
        }
        public void NoMatch()
        {
            Regex2 regex = new Regex2("xyz", AlgorithmType);
            Match2 match = regex.Match("Something or other");

            Assert.AreEqual(Match2.Empty, match);
        }