public void CheckCustomThrow() { var ex = Assert.Throws <RpcException>(() => { client.CustomThrow(123).GetAwaiter().GetResult(); }); ex.Status.StatusCode.Should().Be((StatusCode)123); }
public void CheckCustomThrow() { var ex = Assert.Throws <RpcException>(() => { client.CustomThrow(9999).GetAwaiter().GetResult(); }); ex.Status.StatusCode.Is((StatusCode)9999); }