Aspects.Logging.Nlog.Tests.NlogLoggerWrapperTests.WhenCallingInfoShouldRecordOneError C# (CSharp) Method

WhenCallingInfoShouldRecordOneError() private method

private WhenCallingInfoShouldRecordOneError ( ) : void
return void
        public void WhenCallingInfoShouldRecordOneError()
        {
            // act
            _logger.Info("Test String");

            // assert
            _memoryTarget.Logs.Count.Should().Be(1, "because we only called the method once");
            _memoryTarget.Logs.All(log => log.Contains("Info")).Should().BeTrue("Because we only logged a Info");
        }