public void HandlePolicyIgnoresNullArgument()
        {
            var loggerMock = Substitute.For <ILogger>();
            var tested     = new LogExceptionPolicy(loggerMock);
            var exception  = default(InvalidOperationException);

            tested.HandleException(exception);
            loggerMock.Received(1).LogError(Arg.Is <InvalidOperationException>(x => x == null));
        }
        public void HandlePolicyLogsTheException()
        {
            var loggerMock = Substitute.For <ILogger>();
            var tested     = new LogExceptionPolicy(loggerMock);
            var exception  = new InvalidOperationException();

            tested.HandleException(exception);
            loggerMock.Received(1).LogError(Arg.Is <InvalidOperationException>(x => x == exception));
        }