public void send_throws_if_buffer_is_null() { using(var session = new ProxySession(123, CreateSocket())) { Assert.Throws<ArgumentNullException>(() => session.SendAsync(null)); } }