public static void VerifyResponseException(this Response result, Error error, Expression <Func <Exception, bool> > predicate, AnalyticsServiceMockBuilder mockAnalyticsService) { Assert.That(result.Error.Equals(error)); mockAnalyticsService.VerifyLogExceptionWithMessage(predicate); }
public static void VerifyResponseException(this Response result, Error error, string exceptionMessage, AnalyticsServiceMockBuilder mockAnalyticsService) { Assert.That(result.Error.Equals(error)); mockAnalyticsService.VerifyLogExceptionWithMessage(exceptionMessage); }