예제 #1
0
 public void ChannelReadCompleteCallsReadWhenAutoReadFalse()
 {
     _channel.Object.Configuration.IsAutoRead = false;
     _handler = NewHandler();
     _handler.ChannelReadComplete(_ctx.Object);
     _ctx.Verify(x => x.Read(), Times.Once());
 }
예제 #2
0
 public void ChannelReadCompleteTriggersFlush()
 {
     _handler = NewHandler();
     _handler.ChannelReadComplete(_ctx.Object);
     _ctx.Verify(x => x.Flush(), Times.Once);
 }