Пример #1
0
        public virtual void TestRemoveAllReactions()
        {
            IReactionSet reactionSet = (IReactionSet)NewChemObject();

            reactionSet.Add(reactionSet.Builder.NewReaction());
            reactionSet.Clear();
            Assert.AreEqual(0, reactionSet.Count);
        }
Пример #2
0
        public virtual void TestIsEmpty()
        {
            IReactionSet set = (IReactionSet)NewChemObject();

            Assert.IsTrue(set.IsEmpty(), "new reaction set should be empty");

            set.Add(set.Builder.NewReaction());

            Assert.IsFalse(set.IsEmpty(), "reaction set with a single reaction should not be empty");

            set.Clear();

            Assert.IsTrue(set.IsEmpty(), "reaction set with all reactions removed should be empty");
        }