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