public void StringOrConcatenationRule() { string a = "..."; ConcatenationRule b = "b"; RuleAlternation c = a | b; Assert.IsNotNull(c); Assert.AreEqual(@"\.\.\.", (c.First().First() as Terminal).Regex.ToString()); }
public void ImplicitCastFromStringToRuleAlternation() { RuleAlternation foo = "..."; Assert.AreEqual(@"\.\.\.", (foo.First().First() as Terminal).Regex.ToString()); }