Aspects.Logging.Tests.LoggerImplementationTests.WhenCallingInfoCallCountShouldIncrease C# (CSharp) Method

WhenCallingInfoCallCountShouldIncrease() private method

private WhenCallingInfoCallCountShouldIncrease ( ) : void
return void
        public void WhenCallingInfoCallCountShouldIncrease()
        {
            ILogger sut = new MockLogger();
            sut.Info(TestString);

            MockLogger mockLogger = (MockLogger)sut;
            mockLogger.InfoCallCount.Should().Be(1, "because we only called the info method once");
        }