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)); }
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()); }