Beispiel #1
0
        public void TestSingleCustomParseSucceed()
        {
            var parser = new SingleCustomRegexParser(Regex.Unescape("\n"));

            Assert.AreEqual(true, parser.CanParse(Regex.Unescape("//[**]\n2**5")));
        }
Beispiel #2
0
        public void TestSingleCustomeParseFailOnDelimiterLengthGreaterThan1()
        {
            var parser = new SingleCustomRegexParser(Regex.Unescape("\n"));

            Assert.AreEqual(false, parser.CanParse(Regex.Unescape("//**\n2**5")));
        }