IsEnabled() public method

public IsEnabled ( LogLevel, logLevel ) : bool
logLevel LogLevel,
return bool
        private void RunLogLevelEnabledCheckTests(TargetLoggerMockLoggerSetupProperties loggerSetupProps, StakhanoviseLogLevel logLevel, bool isLevelEnabled)
        {
            Mock <ILog> targetLoggerMock =
                CreateLog4NetLoggerMock(loggerSetupProps);

            Log4NetLogger stakhanoviseLogger =
                new Log4NetLogger(targetLoggerMock.Object);

            if (isLevelEnabled)
            {
                Assert.IsTrue(stakhanoviseLogger.IsEnabled(logLevel));
            }
            else
            {
                Assert.IsFalse(stakhanoviseLogger.IsEnabled(logLevel));
            }
        }
        public void IsEnabled_GivenLogLevel_Should_ReturnExpectedValue_BasedOn_ConfigurationFile(Log4NetFileOption fileOption, LogLevel level, bool expected)
        {
            var options = ConfigureOptions(fileOption);
            var sut     = new Log4NetLogger(options);

            sut.IsEnabled(level)
            .Should()
            .Be(expected);
        }
        public void LoggerDebugDisabled()
        {
            // Arrange
            var logMock = new Mock <ILog>();

            logMock.Setup(m => m.IsDebugEnabled).Returns(false);
            var logger = new Log4NetLogger(logMock.Object);

            // Act
            var isEnabled = logger.IsEnabled(LogLevel.Debug);

            // Assert
            Assert.False(isEnabled);
        }
        public void is_enabled_for_the_log_levels_returns_expected_value(Level configLevel, LogLevel toTest, bool expected)
        {
            // Arrange
            var logger = new Log4NetLogger("TestLogger");
            var repo   = LogManager.GetRepository().As <Hierarchy>();

            repo.Root.Level = configLevel;
            repo.Configured = true;

            // Act
            var result = logger.IsEnabled(toTest);

            // Assert
            result.Should().Be(expected);
        }