public void can_send_a_buffer()
{
using(var ctx = new TestContext())
using(var session = new ProxySession(0, ctx.Output))
{
var expected = new byte[] { 1, 2, 3, 4, 5, 6, 7, 8, 9, 10 };
session.SendAsync(new[] { expected });
var actual = new byte[expected.Length];
Assert.Equal(ctx.Input.Receive(actual), expected.Length);
Assert.Equal(expected, actual);
Assert.False(ctx.Input.Poll(PollTimeout, SelectMode.SelectRead));
}
}