Ejemplo n.º 1
0
        public void FireExceptionThrowsExceptionWhenExceptionIsNull()
        {
            var notifier = new EmailNotifier(new EmailConfiguration());

            var exception = Assert.Throws <ExceptionMissingException>(() => notifier.FireNotification(null, null));

            Assert.Equal("FireNotification failure: exception is null.", exception.Message);
        }