|
|
@ -204,23 +204,21 @@ namespace Grpc.Core.Tests |
|
|
|
BenchmarkUtil.RunBenchmark(100, 100, |
|
|
|
BenchmarkUtil.RunBenchmark(100, 100, |
|
|
|
() => { Calls.BlockingUnaryCall(call, "ABC", default(CancellationToken)); }); |
|
|
|
() => { Calls.BlockingUnaryCall(call, "ABC", default(CancellationToken)); }); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
// TODO(jtattermusch): temporarily commented out for #1731 |
|
|
|
[Test] |
|
|
|
// to be uncommented along with PR #1577 |
|
|
|
public void UnknownMethodHandler() |
|
|
|
// [Test] |
|
|
|
{ |
|
|
|
// public void UnknownMethodHandler() |
|
|
|
var call = new Call<string, string>(ServiceName, NonexistentMethod, channel, Metadata.Empty); |
|
|
|
// { |
|
|
|
try |
|
|
|
// var call = new Call<string, string>(ServiceName, NonexistentMethod, channel, Metadata.Empty); |
|
|
|
{ |
|
|
|
// try |
|
|
|
Calls.BlockingUnaryCall(call, "ABC", default(CancellationToken)); |
|
|
|
// { |
|
|
|
Assert.Fail(); |
|
|
|
// Calls.BlockingUnaryCall(call, "ABC", default(CancellationToken)); |
|
|
|
} |
|
|
|
// Assert.Fail(); |
|
|
|
catch (RpcException e) |
|
|
|
// } |
|
|
|
{ |
|
|
|
// catch (RpcException e) |
|
|
|
Assert.AreEqual(StatusCode.Unimplemented, e.Status.StatusCode); |
|
|
|
// { |
|
|
|
} |
|
|
|
// Assert.AreEqual(StatusCode.Unimplemented, e.Status.StatusCode); |
|
|
|
} |
|
|
|
// } |
|
|
|
|
|
|
|
// } |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
private static async Task<string> EchoHandler(ServerCallContext context, string request) |
|
|
|
private static async Task<string> EchoHandler(ServerCallContext context, string request) |
|
|
|
{ |
|
|
|
{ |
|
|
|