public void WmiTraceListenerNodeDataTest()
        {
            string name = "some name";

            WmiTraceListenerData wmiTraceListenerData = new WmiTraceListenerData();
            wmiTraceListenerData.Name = name;

            WmiTraceListenerNode wmiTraceListenerNode = new WmiTraceListenerNode(wmiTraceListenerData);
            ApplicationNode.AddNode(wmiTraceListenerNode);

            Assert.AreEqual(name, wmiTraceListenerNode.Name);
        }
        public void TraceListenerNameEqualsReferencedTraceListenerName()
        {
            string traceListenerName = "a traceListener";

            TraceListenerReferenceNode traceListenerReference = new TraceListenerReferenceNode();

            TraceListenerCollectionNode traceListenerCollection = new TraceListenerCollectionNode();
            TraceListenerNode aTraceListener = new WmiTraceListenerNode(new WmiTraceListenerData(traceListenerName));

            ApplicationNode.AddNode(traceListenerReference);
            ApplicationNode.AddNode(traceListenerCollection);
            traceListenerCollection.AddNode(aTraceListener);

            traceListenerReference.ReferencedTraceListener = aTraceListener;

            Assert.AreEqual(traceListenerName, traceListenerReference.Name);
        }
        public void WmiTraceListenerNodeDefaults()
        {
            WmiTraceListenerNode wmiListener = new WmiTraceListenerNode();

            Assert.AreEqual("WMI TraceListener", wmiListener.Name);
        }