Class ProtoGrpcExceptionAssertions
The Should/ShouldNot facade of a failed gRPC call, reached through
For(RpcException). Every assertion returns the exception it asserted on.
public sealed class ProtoGrpcExceptionAssertions
- Inheritance
-
ProtoGrpcExceptionAssertions
- Inherited Members
- Extension Methods
Properties
Should
The positive assertions of the failed call, for example Should.HaveStatus(NotFound).
public ProtoGrpcExceptionAssertions Should { get; }
Property Value
ShouldNot
The negated assertions of the failed call, for example ShouldNot.HaveStatus(Internal).
public ProtoGrpcExceptionAssertions ShouldNot { get; }
Property Value
Methods
HaveStatus(StatusCode)
Asserts the call's status; the negated form asserts it is anything but
expected. Returns the exception.
public RpcException HaveStatus(StatusCode expected)
Parameters
expectedStatusCode