public void DefaultInitializationTest()
        {
            var logProvider = new InternalLogProvider();
            var logger      = logProvider.GetLog("someLogNameWhichDoesNotContainsInLogList");

            Assert.That(logger, Is.InstanceOf <NullLog>());
        }
        public void ParameterizedInitializationTest()
        {
            var configuration = LoadLoggingConfiguration("LoggingConfiguration");
            var logProvider   = new InternalLogProvider(configuration.Logs);
            var logger        = logProvider.GetLog("Trash");

            Assert.That(logger.Name, Is.EqualTo("Trash"));
            Assert.That(logger, Is.InstanceOf <InternalLog>());

            logger = logProvider.GetLog("NullLog");
            Assert.That(logger.Name, Is.EqualTo("NullLog"));
            Assert.That(logger, Is.InstanceOf <NullLog>());

            logger = logProvider.GetLog("FileLog");
            Assert.That(logger.Name, Is.EqualTo("FileLog"));
            Assert.That(logger, Is.InstanceOf <InternalLog>());

            logger = logProvider.GetLog("AnotherLogName");
            Assert.That(logger.Name, Is.EqualTo("AnotherLogName"));
            Assert.That(logger, Is.InstanceOf <InternalLog>());

            logger = logProvider.GetLog("LogName");
            Assert.That(logger.Name, Is.EqualTo("LogName"));
            Assert.That(logger, Is.InstanceOf <InternalLog>());

            logger = logProvider.GetLog("SecondLogName");
            Assert.That(logger.Name, Is.EqualTo("SecondLogName"));
            Assert.That(logger, Is.InstanceOf <InternalLog>());

            logger = logProvider.GetLog("FirstLogName");
            Assert.That(logger.Name, Is.EqualTo("FirstLogName"));
            Assert.That(logger, Is.InstanceOf <InternalLog>());

            logger = logProvider.GetLog("SomeLogName");
            Assert.That(logger.Name, Is.EqualTo("SomeLogName"));
            Assert.That(logger, Is.InstanceOf <InternalLog>());

            logger = logProvider.GetLog("LogNameNot in list");
            Assert.That(logger.Name, Is.EqualTo("LogNameNot in list"));
            Assert.That(logger, Is.InstanceOf <InternalLog>());
        }