aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/csharp/Grpc.Core.Tests/Internal/AsyncCallTest.cs
diff options
context:
space:
mode:
Diffstat (limited to 'src/csharp/Grpc.Core.Tests/Internal/AsyncCallTest.cs')
-rw-r--r--src/csharp/Grpc.Core.Tests/Internal/AsyncCallTest.cs36
1 files changed, 2 insertions, 34 deletions
diff --git a/src/csharp/Grpc.Core.Tests/Internal/AsyncCallTest.cs b/src/csharp/Grpc.Core.Tests/Internal/AsyncCallTest.cs
index 5747f3ba04..685c5f7d6c 100644
--- a/src/csharp/Grpc.Core.Tests/Internal/AsyncCallTest.cs
+++ b/src/csharp/Grpc.Core.Tests/Internal/AsyncCallTest.cs
@@ -33,9 +33,10 @@
using System;
using System.Runtime.InteropServices;
+using System.Threading.Tasks;
+
using Grpc.Core.Internal;
using NUnit.Framework;
-using System.Threading.Tasks;
namespace Grpc.Core.Internal.Tests
{
@@ -87,38 +88,8 @@ namespace Grpc.Core.Internal.Tests
Assert.AreEqual(StatusCode.Internal, ex.Status.StatusCode);
}
-
- //[Test]
- //public void Duplex_ReceiveEarlyClose()
- //{
- // asyncCall.StartDuplexStreamingCall();
-
- // fakeCall.ReceivedStatusOnClientHandler(true, new ClientSideStatus(new Status(StatusCode.DeadlineExceeded, ""), null));
-
- // // TODO: start read...
- // Assert.IsTrue(fakeCall.IsDisposed);
- //}
-
- //[Test]
- //public void Duplex_ReceiveEarlyCloseWithRead()
- //{
- // asyncCall.StartDuplexStreamingCall();
-
- // fakeCall.ReceivedStatusOnClientHandler(true, new ClientSideStatus(new Status(StatusCode.DeadlineExceeded, ""), null));
-
- // var taskSource = new AsyncCompletionTaskSource<string>();
- // asyncCall.StartReadMessage(taskSource.CompletionDelegate);
-
- // fakeCall.ReceivedMessageHandler(true, new byte[] { 1 } );
-
- // // TODO: start read...
- // Assert.IsTrue(fakeCall.IsDisposed);
- //}
-
-
internal class FakeNativeCall : INativeCall
{
-
public UnaryResponseClientHandler UnaryResponseClientHandler
{
get;
@@ -247,8 +218,5 @@ namespace Grpc.Core.Internal.Tests
IsDisposed = true;
}
}
-
}
-
-
} \ No newline at end of file