public void RegisterTreeNode() { TreeNodeFactory.Register(typeof(MyConfigurationNode), typeof(MyConfigurationTreeNode)); MyConfigurationNode node = new MyConfigurationNode("test"); ConfigurationTreeNode treeNode = TreeNodeFactory.Create(node); Assert.AreEqual(typeof(MyConfigurationTreeNode), treeNode.GetType()); }
public override void WarmUpAllFactories() { //m_ObiNodeFactory.createNode() TreeNodeFactory.Create <ObiRootNode>(); TreeNodeFactory.Create <PhraseNode>(); TreeNodeFactory.Create <SectionNode>(); TreeNodeFactory.Create <EmptyNode>(); base.WarmUpAllFactories(); }