Exemplo n.º 1
0
        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);
        }
Exemplo n.º 2
0
 public void AddInvalidTypeObject()
 {
     cats.Add("foo");
 }