bool IDumpExceptAttribute.IsException(object target) { try { return((bool)target.GetType().GetMethod(_predicate).Invoke(target, null)); } catch (Exception e) { Tracer.AssertionFailed("Exception when calling " + target.GetType().PrettyName() + _predicate, () => e.Message); return(false); } }