/// <summary> /// Removes the actions and expectation from translated steps because they may cause conflicts. /// Remove obsolete comments /// </summary> /// <param name="obj"></param> /// <param name="visitSubNodes"></param> public override void visit(Step obj, bool visitSubNodes) { Tests.Step step = (Tests.Step)obj; if (step.getObsoleteComment() == "") { step.setObsoleteComment(null); } base.visit(obj, visitSubNodes); }
/// <summary> /// Updates the step : comment has been moved /// </summary> /// <param name="obj"></param> /// <param name="visitSubNodes"></param> public override void visit(Step obj, bool visitSubNodes) { Tests.Step step = (Tests.Step)obj; if (!string.IsNullOrEmpty(step.getObsoleteComment())) { if (string.IsNullOrEmpty(step.getComment())) { step.setComment(step.getObsoleteComment()); } else { step.setComment(step.getComment() + "\n" + step.getObsoleteComment()); } step.setObsoleteComment(null); } base.visit(obj, visitSubNodes); }