Пример #1
0
            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);
            }
Пример #2
0
            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);
            }
Пример #3
0
            public void ShouldErrorOnSummary()
            {
                var exc    = new ClientException("some error");
                var cursor = CreateFailingResultCursor(exc);
                var result = new RxResult(Observable.Return(cursor));

                VerifyError(result.Consume(), exc);
            }
Пример #4
0
            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");
            }
Пример #5
0
            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());
            }