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