|
|
|
@ -217,7 +217,7 @@ namespace Grpc.IntegrationTesting |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
public static void RunEmptyUnary(TestService.TestServiceClientBase client) |
|
|
|
|
public static void RunEmptyUnary(TestService.TestServiceClient client) |
|
|
|
|
{ |
|
|
|
|
Console.WriteLine("running empty_unary"); |
|
|
|
|
var response = client.EmptyCall(new Empty()); |
|
|
|
@ -225,7 +225,7 @@ namespace Grpc.IntegrationTesting |
|
|
|
|
Console.WriteLine("Passed!"); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
public static void RunLargeUnary(TestService.TestServiceClientBase client) |
|
|
|
|
public static void RunLargeUnary(TestService.TestServiceClient client) |
|
|
|
|
{ |
|
|
|
|
Console.WriteLine("running large_unary"); |
|
|
|
|
var request = new SimpleRequest |
|
|
|
@ -241,7 +241,7 @@ namespace Grpc.IntegrationTesting |
|
|
|
|
Console.WriteLine("Passed!"); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
public static async Task RunClientStreamingAsync(TestService.TestServiceClientBase client) |
|
|
|
|
public static async Task RunClientStreamingAsync(TestService.TestServiceClient client) |
|
|
|
|
{ |
|
|
|
|
Console.WriteLine("running client_streaming"); |
|
|
|
|
|
|
|
|
@ -257,7 +257,7 @@ namespace Grpc.IntegrationTesting |
|
|
|
|
Console.WriteLine("Passed!"); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
public static async Task RunServerStreamingAsync(TestService.TestServiceClientBase client) |
|
|
|
|
public static async Task RunServerStreamingAsync(TestService.TestServiceClient client) |
|
|
|
|
{ |
|
|
|
|
Console.WriteLine("running server_streaming"); |
|
|
|
|
|
|
|
|
@ -281,7 +281,7 @@ namespace Grpc.IntegrationTesting |
|
|
|
|
Console.WriteLine("Passed!"); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
public static async Task RunPingPongAsync(TestService.TestServiceClientBase client) |
|
|
|
|
public static async Task RunPingPongAsync(TestService.TestServiceClient client) |
|
|
|
|
{ |
|
|
|
|
Console.WriteLine("running ping_pong"); |
|
|
|
|
|
|
|
|
@ -338,7 +338,7 @@ namespace Grpc.IntegrationTesting |
|
|
|
|
Console.WriteLine("Passed!"); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
public static async Task RunEmptyStreamAsync(TestService.TestServiceClientBase client) |
|
|
|
|
public static async Task RunEmptyStreamAsync(TestService.TestServiceClient client) |
|
|
|
|
{ |
|
|
|
|
Console.WriteLine("running empty_stream"); |
|
|
|
|
using (var call = client.FullDuplexCall()) |
|
|
|
@ -434,7 +434,7 @@ namespace Grpc.IntegrationTesting |
|
|
|
|
Console.WriteLine("Passed!"); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
public static async Task RunCancelAfterBeginAsync(TestService.TestServiceClientBase client) |
|
|
|
|
public static async Task RunCancelAfterBeginAsync(TestService.TestServiceClient client) |
|
|
|
|
{ |
|
|
|
|
Console.WriteLine("running cancel_after_begin"); |
|
|
|
|
|
|
|
|
@ -451,7 +451,7 @@ namespace Grpc.IntegrationTesting |
|
|
|
|
Console.WriteLine("Passed!"); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
public static async Task RunCancelAfterFirstResponseAsync(TestService.TestServiceClientBase client) |
|
|
|
|
public static async Task RunCancelAfterFirstResponseAsync(TestService.TestServiceClient client) |
|
|
|
|
{ |
|
|
|
|
Console.WriteLine("running cancel_after_first_response"); |
|
|
|
|
|
|
|
|
@ -477,7 +477,7 @@ namespace Grpc.IntegrationTesting |
|
|
|
|
Console.WriteLine("Passed!"); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
public static async Task RunTimeoutOnSleepingServerAsync(TestService.TestServiceClientBase client) |
|
|
|
|
public static async Task RunTimeoutOnSleepingServerAsync(TestService.TestServiceClient client) |
|
|
|
|
{ |
|
|
|
|
Console.WriteLine("running timeout_on_sleeping_server"); |
|
|
|
|
|
|
|
|
@ -499,7 +499,7 @@ namespace Grpc.IntegrationTesting |
|
|
|
|
Console.WriteLine("Passed!"); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
public static async Task RunCustomMetadataAsync(TestService.TestServiceClientBase client) |
|
|
|
|
public static async Task RunCustomMetadataAsync(TestService.TestServiceClient client) |
|
|
|
|
{ |
|
|
|
|
Console.WriteLine("running custom_metadata"); |
|
|
|
|
{ |
|
|
|
@ -546,7 +546,7 @@ namespace Grpc.IntegrationTesting |
|
|
|
|
Console.WriteLine("Passed!"); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
public static async Task RunStatusCodeAndMessageAsync(TestService.TestServiceClientBase client) |
|
|
|
|
public static async Task RunStatusCodeAndMessageAsync(TestService.TestServiceClient client) |
|
|
|
|
{ |
|
|
|
|
Console.WriteLine("running status_code_and_message"); |
|
|
|
|
var echoStatus = new EchoStatus |
|
|
|
@ -580,7 +580,7 @@ namespace Grpc.IntegrationTesting |
|
|
|
|
Console.WriteLine("Passed!"); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
public static void RunUnimplementedMethod(UnimplementedService.UnimplementedServiceClientBase client) |
|
|
|
|
public static void RunUnimplementedMethod(UnimplementedService.UnimplementedServiceClient client) |
|
|
|
|
{ |
|
|
|
|
Console.WriteLine("running unimplemented_method"); |
|
|
|
|
var e = Assert.Throws<RpcException>(() => client.UnimplementedCall(new Empty())); |
|
|
|
|