public void Given_there_are_no_filters_that_match_Should_not_exclude_it()
        {
            var error    = new Error(new ArgumentException());
            var pipeline = new ErrorFilter();

            pipeline.WithExceptionTypes(typeof(InvalidOperationException));
            pipeline.WithErrorMessageContaining("test");

            var exclude = pipeline.Exclude(error);

            Assert.IsFalse(exclude);
        }
        public void Given_at_least_one_filter_matches_Should_exclude_it()
        {
            var error    = new Error(new ArgumentException("test"));
            var pipeline = new ErrorFilter();

            pipeline.WithExceptionTypes(typeof(InvalidOperationException));
            pipeline.WithErrorMessageContaining("test");

            var exclude = pipeline.Exclude(error);

            Assert.IsTrue(exclude);
        }