private WhenCallingErrorCallCountShouldIncrease ( ) : void | ||
return | void |
public void WhenCallingErrorCallCountShouldIncrease()
{
ILogger sut = new MockLogger();
sut.Error(TestString, new Exception());
MockLogger mockLogger = (MockLogger)sut;
mockLogger.ErrorCallCount.Should().Be(1, "because we only called the error method once");
}