public void Process_ExceptionProcessors_Invoked()
        {
            var exceptionProcessor = Substitute.For <ISentryEventExceptionProcessor>();

            SentryOptions.AddExceptionProcessorProvider(() => new[] { exceptionProcessor });

            var evt = new SentryEvent
            {
                Exception = new Exception()
            };

            Sut.Process(evt);

            exceptionProcessor.Received(1).Process(evt.Exception, evt);
        }
        public void Process_NoExceptionOnEvent_ExceptionProcessorsNotInvoked()
        {
            var invoked = false;

            SentryOptions.AddExceptionProcessorProvider(() =>
            {
                invoked = true;
                return(new[] { Substitute.For <ISentryEventExceptionProcessor>() });
            });

            var evt = new SentryEvent();

            Sut.Process(evt);

            Assert.False(invoked);
        }