示例#1
0
        public void StringOrConcatenationRule()
        {
            string            a = "...";
            ConcatenationRule b = "b";

            RuleAlternation c = a | b;

            Assert.IsNotNull(c);
            Assert.AreEqual(@"\.\.\.", (c.First().First() as Terminal).Regex.ToString());
        }
示例#2
0
        public void ImplicitCastFromStringToRuleAlternation()
        {
            RuleAlternation foo = "...";

            Assert.AreEqual(@"\.\.\.", (foo.First().First() as Terminal).Regex.ToString());
        }