Пример #1
0
        public bool Equals(SequenceRegExp sequenceRegExp)
        {
            if (!base.Equals(sequenceRegExp)) return false;

            if (ChildExpressions.Length != sequenceRegExp.ChildExpressions.Length) return false;

            for (int i = 0; i < ChildExpressions.Length; i++)
            {
                if (!ChildExpressions[i].Equals(sequenceRegExp.ChildExpressions[i])) return false;
            }

            return true;
        }
Пример #2
0
        public void SequenceRegExpMultipleParametersTest()
        {
            var regExp = new SequenceRegExp(new LiteralRegExp('a'), new LiteralRegExp('b'), new LiteralRegExp('c'),
                                            new LiteralRegExp('d'), new LiteralRegExp('e'), new LiteralRegExp('f'));

            //var expectedRE = new SequenceRegExp()
        }