public void FormattersAddChildNodesTest() { FormatterCollectionNode node = new FormatterCollectionNode(); GeneratedApplicationNode.Nodes.AddWithDefaultChildren(node); Assert.AreEqual(1, node.Nodes.Count); Assert.AreEqual(typeof(TextFormatterNode), node.Nodes[0].GetType()); Assert.AreEqual(SR.DefaultFormatter, node.Nodes[0].Name); Assert.AreEqual(SR.DefaultTextFormat, ((TextFormatterNode) node.Nodes[0]).Template.Text); }
/// <summary> /// Adds the following nodes: <see cref="SinkCollectionNode"/>, <see cref="FormatterCollectionNode"/>, and <see cref="CategoryCollectionNode"/>. /// </summary> protected override void AddDefaultChildNodes() { base.AddDefaultChildNodes(); SinkCollectionNode sinksNode = new SinkCollectionNode(); Nodes.AddWithDefaultChildren(sinksNode); FormatterCollectionNode fomattersNode = new FormatterCollectionNode(); Nodes.AddWithDefaultChildren(fomattersNode); CategoryCollectionNode cateogoriesNode = new CategoryCollectionNode(); Nodes.AddWithDefaultChildren(cateogoriesNode); }