private static AssertableLogProvider.LogMatcher LoggedException(Exception exception) { return(inLog(CoreMatchers.any(typeof(string))).error(CoreMatchers.any(typeof(string)), sameInstance(exception))); }