Exemple #1
0
        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());
        }
Exemple #2
0
        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());
        }