//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes: //ORIGINAL LINE: @Test public void shouldEncodeAndDecodePullRequestMessage() public virtual void ShouldEncodeAndDecodePullRequestMessage() { // given EmbeddedChannel channel = new EmbeddedChannel(new TxStreamFinishedResponseEncoder(), new TxStreamFinishedResponseDecoder()); TxStreamFinishedResponse sent = new TxStreamFinishedResponse(SUCCESS_END_OF_STREAM, 1000); // when channel.writeOutbound(sent); object message = channel.readOutbound(); channel.writeInbound(message); // then TxStreamFinishedResponse received = channel.readInbound(); assertNotSame(sent, received); assertEquals(sent, received); }
public override void onTxStreamFinishedResponse(CompletableFuture <TxPullRequestResult> signal, TxStreamFinishedResponse response) { signal.complete(new TxPullRequestResult(response.Status(), lastTxIdReceived)); }