public void LogWarningIgnore() { ILogger logger = LogFactory.GetLogger <LogFactoryTests>(); logger.filterLogType = LogType.Error; ILogHandler mockHandler = Substitute.For <ILogHandler>(); logger.logHandler = mockHandler; logger.LogWarning("This message should not be logged"); mockHandler.DidNotReceiveWithAnyArgs().LogFormat(default, null, null);