public override void visit(Generated.Expectation obj, bool visitSubNodes) { Tests.Expectation expectation = (Tests.Expectation)obj; if (Rebuild) { expectation.ExpressionTree = null; expectation.ConditionTree = null; } // Side effect : compiles or recompiles the expressions DataDictionary.Interpreter.Expression expression = expectation.ExpressionTree; DataDictionary.Interpreter.Expression condition = expectation.ConditionTree; base.visit(obj, visitSubNodes); }
/// <summary> /// Adds a model element in this model element /// </summary> /// <param name="copy"></param> public override void AddModelElement(Utils.IModelElement element) { if (element is Rules.Action) { Rules.Action item = element as Rules.Action; if (item != null) { appendActions(item); } } else if (element is Expectation) { Tests.Expectation item = element as Tests.Expectation; if (item != null) { appendExpectations(item); } } }