public void FlatFileTraceListenerNodeDefaults()
        {
            FlatFileTraceListenerNode flatFileListener = new FlatFileTraceListenerNode();

            Assert.AreEqual("FlatFile TraceListener", flatFileListener.Name);
            Assert.AreEqual(DefaultValues.FlatFileListenerFileName, flatFileListener.Filename);
            Assert.AreEqual(DefaultValues.FlatFileListenerHeader, flatFileListener.Header);
            Assert.AreEqual(DefaultValues.FlatFileListenerFooter, flatFileListener.Footer);
        }
        public void FlatFileTraceListenerNodeDataTest()
        {
            string name = "some name";
            string fileName = "some filename";
            string header = "some header";
            string footer = "some footer";

            FlatFileTraceListenerData flatFileTraceListenerData = new FlatFileTraceListenerData();
            flatFileTraceListenerData.Name = name;
            flatFileTraceListenerData.FileName = fileName;
            flatFileTraceListenerData.Header = header;
            flatFileTraceListenerData.Footer = footer;

            FlatFileTraceListenerNode flatFileTraceListenerNode = new FlatFileTraceListenerNode(flatFileTraceListenerData);
            ApplicationNode.AddNode(flatFileTraceListenerNode);

            Assert.AreEqual(name, flatFileTraceListenerNode.Name);
            Assert.AreEqual(fileName, flatFileTraceListenerNode.Filename);
            Assert.AreEqual(header, flatFileTraceListenerNode.Header);
            Assert.AreEqual(footer, flatFileTraceListenerNode.Footer);
        }