BudgetAnalyser.UnitTest.BudgetAnalyserLog4NetLoggerTest.LogErrorWithExceptionShouldLogWhenErrorLoggingIsEnabled C# (CSharp) Method

LogErrorWithExceptionShouldLogWhenErrorLoggingIsEnabled() private method

        public void LogErrorWithExceptionShouldLogWhenErrorLoggingIsEnabled()
        {
            MockLogger.Setup(m => m.IsErrorEnabled).Returns(true);
            Subject.LogError(new Exception(), _ => "Foo");
            MockLogger.Verify(m => m.Error(It.IsAny<string>(), It.IsAny<Exception>()));
        }