public void TestProcessDirectoryFailsNonExistentDirectory()
        {
            string nonExistantPath = System.IO.Path.Combine(
                System.IO.Path.GetTempPath(),
                System.IO.Path.GetRandomFileName());

            Assert.IsFalse(System.IO.Directory.Exists(nonExistantPath));

            var atcsLogFileManager = new LogFileManager(nonExistantPath);

            Assert.ThrowsException <System.IO.DirectoryNotFoundException>(
                () => atcsLogFileManager.ProcessDirectory());
        }
        public void TestProcessDirectorySucceeds()
        {
            var atcsLogFileManager = new LogFileManager(testDirectory.FullName);

            atcsLogFileManager.ProcessDirectory();

            // After execution of ProcessDirectory on our testDirectory, we
            // should have 1 log file and 3 zip files.

            var logFiles = testDirectory.GetFiles("*.log");
            var zipFiles = testDirectory.GetFiles("*.zip");

            Assert.AreEqual(1, logFiles.Length);
            Assert.AreEqual(3, zipFiles.Length);
        }