public void When_directory_is_bad_should_throw()
        {
            var defaultFactory = new DefaultFactory();
            var nonExistingDirectoryException = Assert.Throws <DirectoryNotFoundException>(() => defaultFactory.Directory("baddir"));

            Assert.AreEqual("Could not find logging directory: 'baddir'", nonExistingDirectoryException.Message);
            Assert.Throws <ArgumentNullException>(() => defaultFactory.Directory(null));
            Assert.Throws <ArgumentNullException>(() => defaultFactory.Directory(""));
            Assert.Throws <ArgumentNullException>(() => defaultFactory.Directory(" "));
        }
    public void ChangingDefaults()
    {
        #region OverrideLoggingDefaultsInCode

        DefaultFactory defaultFactory = LogManager.Use <DefaultFactory>();
        defaultFactory.Directory("pathToLoggingDirectory");
        defaultFactory.Level(LogLevel.Debug);

        #endregion
    }