public virtual void TestClear() { var container = new ConformerContainer(confs); Assert.AreEqual(nconfs, container.Count()); container.Clear(); Assert.AreEqual(0, container.Count()); }
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()); }
public virtual void TestConformerContainer() { var container = new ConformerContainer(); Assert.IsNotNull(container); base_.Title = "myMolecule"; container.Add(base_); Assert.AreEqual(1, container.Count()); foreach (var conf in confs) { container.Add(conf); } Assert.AreEqual(nconfs + 1, container.Count()); }
public virtual void TestConformerContainer_arrayIAtomContainer() { var container = new ConformerContainer(confs); Assert.IsNotNull(container); Assert.AreEqual(nconfs, container.Count()); }
public virtual void TestConformerContainer_IAtomContainer() { var container = new ConformerContainer(base_); Assert.IsNotNull(container); Assert.AreEqual(1, container.Count()); }
public virtual void TestAddAll_Collection() { var container = new ConformerContainer(confs); Assert.AreEqual(nconfs, container.Count()); Assert.IsTrue(container.Contains(container[3])); }
public virtual void TestContains_Object() { var container = new ConformerContainer(confs); Assert.AreEqual(nconfs, container.Count()); Assert.IsTrue(container.Contains(container[3])); }
public virtual void TestRemove_int() { var container = new ConformerContainer(confs); container.Clear(); Assert.AreEqual(0, container.Count()); for (int i = 0; i < nconfs; i++) { container.Add(confs[i]); } Assert.AreEqual(nconfs, container.Count()); container.RemoveAt(0); Assert.AreEqual(nconfs - 1, container.Count()); }
public virtual void TestLastIndexOf_Object() { var container = new ConformerContainer(confs); Assert.AreEqual(nconfs, container.Count()); int x = container.LastIndexOf(container[3]); Assert.AreEqual(3, container.LastIndexOf(container[3])); }
public virtual void TestContainsAll_Collection() { var container = new ConformerContainer(confs); Assert.IsNotNull(container); Assert.AreEqual(nconfs, container.Count()); foreach (var e in container) { Assert.IsTrue(container.Contains(e)); } }
public virtual void TestAdd_Object() { var container = new ConformerContainer(); Assert.IsNotNull(container); foreach (var conf in confs) { container.Add(conf); } Assert.AreEqual(nconfs, container.Count()); }
public virtual void TestSize() { ConformerContainer container = new ConformerContainer(confs); Assert.AreEqual(nconfs, container.Count()); }