Beispiel #1
0
        public virtual void TestRemoveReaction_int()
        {
            IReactionSet reactionSet = (IReactionSet)NewChemObject();

            reactionSet.Add(reactionSet.Builder.NewReaction()); // 1
            reactionSet.Add(reactionSet.Builder.NewReaction()); // 2
            reactionSet.Add(reactionSet.Builder.NewReaction()); // 3
            Assert.AreEqual(3, reactionSet.Count);
            reactionSet.RemoveAt(1);
            Assert.AreEqual(2, reactionSet.Count);
            Assert.IsNotNull(reactionSet[0]);
            Assert.IsNotNull(reactionSet[1]);
        }