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