public void VisitBeforeChildren(IMapping mapping) { Indent(); Print(mapping.ToString()); LineBreak(); ++depth; }
/// <summary> /// Method to test whether the class complies with RFC #9. /// </summary> public virtual void TestToString() { IMapping mapping = (IMapping)NewChemObject(); string description = mapping.ToString(); for (int i = 0; i < description.Length; i++) { Assert.IsTrue(description[i] != '\n'); Assert.IsTrue(description[i] != '\r'); } }