Fix several Connect test's dependence on ReceiveAsync returning complete message
There's no guarantee that WebSocket.ReceiveAsync will return a complete message; in the extreme, a message can contain long.MaxValue bytes but the API only allows you to retrieve ~int.MaxValue at a time, but even way below that, it's common for ReceiveAsync to return the data it has available rather than gathering up all of the data from the message. However, several of the ConnectTest tests were depending on the full-message behavior. This commit fixes that.
Commit migrated from https://github.com/dotnet/corefx/commit/
ffaf5375c00622b285997bc9626c042b9d64195c