示例#1
0
        public async Task LogMessage_ShouldNotCallWriterMessage_WhenMessageIsEmpty()
        {
            //arrange
            _loggerSettings.LogLevel.Returns(LogLevel.Error);
            DateTime now = DateTime.UtcNow;

            //act
            await _logger.LogMessageAsync("", LogLevel.Error);

            //arrange
            await _logWriter.DidNotReceiveWithAnyArgs().WriteMessageAsync(Arg.Any <string>(), Arg.Any <LogLevel>());
        }