public void CategoriesDataTest() { CategoryDataCollection data = new CategoryDataCollection(); CategoryData categoryData = new CategoryData(); categoryData.Name = "Test"; data.Add(categoryData); CategoryCollectionNode node = new CategoryCollectionNode(data); GeneratedApplicationNode.Nodes.Add(node); CategoryDataCollection nodeData = node.CategoryDataCollection; Assert.AreEqual(1, nodeData.Count); Assert.AreEqual(categoryData.Name, nodeData[categoryData.Name].Name); }
public void AddInvalidTypeObject() { cats.Add("foo"); }