Table of Contents

Namespace GrpcAssertions.TUnit

Classes

GrpcDoesNotThrowAssertion<TValue>

Fluent TUnit assertion that a delegate completes without throwing a gRPC RpcException: the shape of the "benign error is swallowed" tests. Constructed by the DoesNotThrowGrpcException() entry point on a delegate assertion source.

GrpcExceptionAssertion

Fluent TUnit assertion that a delegate threw a gRPC RpcException, optionally with an expected StatusCode and an expected Detail. Constructed by the ThrowsGrpcException() entry points on a delegate assertion source; the chain methods (WithDetail, WithDetailContaining, and the IsUnavailable() / IsNotFound() status shorthands) narrow the assertion and return the same instance.

RpcExceptionAssertions

TUnit-native fluent entry points for asserting on gRPC exceptions. The v0.0.1 surface ships the IsRpcException() discriminator only; the full outcome-assertion surface (ThrowsGrpcException and the StatusCode shorthands, plus the GrpcCallBuilder test infrastructure) ships in v0.1.0.

ServerStreamAssertion<TResponse>

Fluent TUnit assertion over the responses of an AsyncServerStreamingCall<TResponse>. Constructed by the Streams() entry point on a value assertion source; the chain methods (StreamsAtLeast, StreamsExactly, StreamContains) accumulate expectations and AndStreamItems runs follow-on assertions against the materialized responses.