public void WhenCallingFatalCallCountShouldIncrease()
        {
            ILogger sut = new MockLogger();
            sut.Fatal(TestString, new Exception());

            MockLogger mockLogger = (MockLogger)sut;
            mockLogger.FatalCallCount.Should().Be(1, "because we only called the fatal method once");
        }
Exemple #2
0
        public void WhenCallingFatalCallCountShouldIncrease()
        {
            ILogger sut = new MockLogger();

            sut.Fatal(TestString, new Exception());

            MockLogger mockLogger = (MockLogger)sut;

            mockLogger.FatalCallCount.Should().Be(1, "because we only called the fatal method once");
        }