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 TestAdd_IAtomContainer() { var container = new ConformerContainer(confs); base_.Title = "junk"; container.Add(base_); }
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 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()); }