Ejemplo n.º 1
0
        public virtual void TestClear()
        {
            var container = new ConformerContainer(confs);

            Assert.AreEqual(nconfs, container.Count());
            container.Clear();
            Assert.AreEqual(0, container.Count());
        }
Ejemplo n.º 2
0
        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());
        }