|
|
|
@ -195,8 +195,8 @@ namespace Grpc.IntegrationTesting |
|
|
|
|
case "status_code_and_message": |
|
|
|
|
await RunStatusCodeAndMessageAsync(client); |
|
|
|
|
break; |
|
|
|
|
case "unimplemented_method": |
|
|
|
|
RunUnimplementedMethod(new UnimplementedService.UnimplementedServiceClient(channel)); |
|
|
|
|
case "unimplemented_service": |
|
|
|
|
RunUnimplementedService(new UnimplementedService.UnimplementedServiceClient(channel)); |
|
|
|
|
break; |
|
|
|
|
case "client_compressed_unary": |
|
|
|
|
RunClientCompressedUnary(client); |
|
|
|
@ -577,9 +577,9 @@ namespace Grpc.IntegrationTesting |
|
|
|
|
Console.WriteLine("Passed!"); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
public static void RunUnimplementedMethod(UnimplementedService.UnimplementedServiceClient client) |
|
|
|
|
public static void RunUnimplementedService(UnimplementedService.UnimplementedServiceClient client) |
|
|
|
|
{ |
|
|
|
|
Console.WriteLine("running unimplemented_method"); |
|
|
|
|
Console.WriteLine("running unimplemented_service"); |
|
|
|
|
var e = Assert.Throws<RpcException>(() => client.UnimplementedCall(new Empty())); |
|
|
|
|
|
|
|
|
|
Assert.AreEqual(StatusCode.Unimplemented, e.Status.StatusCode); |
|
|
|
|