Пример #1
0
        public virtual void TestToString()
        {
            IReactionSet reactionSet = (IReactionSet)NewChemObject();
            string       description = reactionSet.ToString();

            for (int i = 0; i < description.Length; i++)
            {
                Assert.IsTrue(description[i] != '\n');
                Assert.IsTrue(description[i] != '\r');
            }

            IReaction reaction = reactionSet.Builder.NewReaction();

            reactionSet.Add(reaction);
            description = reactionSet.ToString();
            for (int i = 0; i < description.Length; i++)
            {
                Assert.IsTrue(description[i] != '\n');
                Assert.IsTrue(description[i] != '\r');
            }
        }