Пример #1
0
 public void VisitBeforeChildren(IMapping mapping)
 {
     Indent();
     Print(mapping.ToString());
     LineBreak();
     ++depth;
 }
Пример #2
0
        /// <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');
            }
        }