예제 #1
0
        public void IsMatchTest5()
        {
            string expected = @"regexp:\d+";
            string actual   = "123";

            Assert.IsTrue(TextPattern.IsMatch(expected, actual));
        }
예제 #2
0
        public void IsMatchTest3()
        {
            string expected = "regexp:foo";
            string actual   = "foo";

            Assert.IsTrue(TextPattern.IsMatch(expected, actual));
        }
예제 #3
0
        public void IsMatchTest4()
        {
            string expected = "regexp:foo";
            string actual   = "bar";

            Assert.IsFalse(TextPattern.IsMatch(expected, actual));
        }
예제 #4
0
        public void RegExpi2()
        {
            string expected = @"regexpi:foo";
            string actual   = "xxxFOOyyy";

            Assert.IsTrue(TextPattern.IsMatch(expected, actual));
        }