public void ShouldErrorOnSummaryRepeatable() { var failure = new ClientException("some error"); var cursor = CreateFailingResultCursor(failure, 2, 5); var result = new RxResult(Observable.Return(cursor)); VerifyError(result.Consume(), failure); VerifyError(result.Consume(), failure); }
public void ShouldErrorOnSummaryRepeatable() { var failure = new DatabaseException("code", "message"); var cursor = CreateFailingResultCursor(failure, 2, 5); var result = new RxResult(Observable.Return(cursor)); VerifyError(result.Consume(), failure); VerifyError(result.Consume(), failure); VerifyError(result.Consume(), failure); }
public void ShouldErrorOnSummary() { var exc = new ClientException("some error"); var cursor = CreateFailingResultCursor(exc); var result = new RxResult(Observable.Return(cursor)); VerifyError(result.Consume(), exc); }
public void ShouldReturnKeysEvenAfterFailedSummary() { var failure = new AuthenticationException("unauthenticated"); var cursor = CreateFailingResultCursor(failure, 2, 5); var result = new RxResult(Observable.Return(cursor)); VerifyError(result.Consume(), failure); VerifyKeys(result, "key01", "key02"); }
public void ShouldErrorOnRecordsAndSummary() { var keys = new[] { "key01", "key02" }; var failure = new DatabaseException("code", "message"); var cursor = CreateFailingResultCursor(failure, 2, 5); var result = new RxResult(Observable.Return(cursor)); VerifyRecordsAndError(result, keys, 5, failure); VerifyNoError(result.Consume()); }