public void Setup()
        {
            var path  = Log4NetExtensions.GetLogFilePath("LogFileAppender");
            var files = Log4NetExtensions.GetLogFiles("LogFileAppender", true);

            foreach (var file in files)
            {
                File.Delete(file);
            }
        }
        public void GetLogFilesTest(Action initAction, string logfileAppenderName, bool allfiles, int expectedCount)
        {
            initAction();
            var result = Log4NetExtensions.GetLogFiles(logfileAppenderName, allfiles);

            foreach (var file in result)
            {
                Log.Info(file);
            }
            Assert.AreEqual(expectedCount, result.Count);
        }
 public void GetLogFilePathTest(string logfileAppenderName, string expectedName)
 {
     Assert.AreEqual(expectedName, Path.GetFileName(Log4NetExtensions.GetLogFilePath(logfileAppenderName)));
 }