public void Should_log_info_if_loglevel_is_info( [Frozen] LogLevel level, Func <string> getMessage, ICastleLogger logger) { new LoggerWithLevels(logger, level).Info(getMessage); logger.Received().Info(getMessage()); }
public void Should_log_warnings_if_loglevel_is_warn_or_higher( [Frozen] LogLevel level, Func <string> getMessage, ICastleLogger logger) { new LoggerWithLevels(logger, level).Warn(getMessage); logger.Received().Warn(getMessage()); }