Ejemplo n.º 1
0
        public void AddTest()
        {
            AtomCategoryCollection target = new AtomCategoryCollection(); // TODO: Initialize to an appropriate value
            AtomCategory           value  = new AtomCategory("test");

            target.Add(value);
            Assert.IsTrue(target.Contains(value));
        }
Ejemplo n.º 2
0
        public void RemoveTest()
        {
            AtomCategoryCollection target   = new AtomCategoryCollection(); // TODO: Initialize to an appropriate value
            AtomCategory           expected = new AtomCategory("test");

            Assert.IsTrue(target.Count == 0);
            target.Add(expected);
            Assert.IsTrue(target.Count == 1);
            target.Remove(expected);
            Assert.IsTrue(target.Count == 0);
        }
Ejemplo n.º 3
0
        public void ItemTest()
        {
            AtomCategoryCollection target = new AtomCategoryCollection();
            int          index            = 0;
            AtomCategory expected         = new AtomCategory("test");
            AtomCategory actual;

            target.Add(expected);
            target[index] = expected;
            actual        = target[index];
            Assert.AreEqual(expected, actual);
        }
Ejemplo n.º 4
0
        public void FindTest()
        {
            AtomCategoryCollection target = new AtomCategoryCollection(); // TODO: Initialize to an appropriate value
            AtomCategory           value  = new AtomCategory("test");

            target.Add(value);
            string       term = "test";
            AtomCategory actual;

            actual = target.Find(term);
            Assert.AreEqual(value, actual);
        }
Ejemplo n.º 5
0
        public void IndexOfTest()
        {
            AtomCategoryCollection target = new AtomCategoryCollection(); // TODO: Initialize to an appropriate value
            AtomCategory           value  = new AtomCategory("test");

            target.Add(value);
            int expected = 0; // TODO: Initialize to an appropriate value
            int actual;

            actual = target.IndexOf(value);
            Assert.AreEqual(expected, actual);
        }