예제 #1
0
        public virtual void TestRemove_Object()
        {
            ConformerContainer cContainer = new ConformerContainer(confs);

            Assert.AreEqual(nconfs, cContainer.Count());
            IAtomContainer container = cContainer[3];

            Assert.IsTrue(cContainer.Contains(container));
            cContainer.Remove(container);
            Assert.AreEqual(nconfs - 1, cContainer.Count());
            Assert.IsFalse(cContainer.Contains(container));
        }
예제 #2
0
        public virtual void TestRemoveAll_Collection()
        {
            var container = new ConformerContainer(confs);

            Assert.IsNotNull(container);
            Assert.AreEqual(nconfs, container.Count());

            foreach (var e in container)
            {
                container.Remove(e);
            }
            Assert.AreEqual(0, container.Count());
        }