Fix WebSocket.Client tests on UAP (dotnet/corefx#29810)
authorDavid Shulman <david.shulman@microsoft.com>
Mon, 21 May 2018 16:38:29 +0000 (09:38 -0700)
committerGitHub <noreply@github.com>
Mon, 21 May 2018 16:38:29 +0000 (09:38 -0700)
commitf01edad59d053e3c9278f471ace6837ce7891e0e
treefd50e406da98db648568b63ccdf46d06f26f851d
parent5623812497575bb7d20944bd098ccb4a96e5afe1
Fix WebSocket.Client tests on UAP (dotnet/corefx#29810)

Fixed WinRTWebSocket for the edge case of dealing with 0-byte receive calls.

Made a few adjustments to the tests for UAP test runs.

Fixes dotnet/corefx#28755.

Commit migrated from https://github.com/dotnet/corefx/commit/3a84f58a3889f1308f8908fcb1e294a5b09a9fbe
src/libraries/System.Net.WebSockets.Client/src/System/Net/WebSockets/WinRTWebSocket.cs
src/libraries/System.Net.WebSockets.Client/tests/ConnectTest.cs
src/libraries/System.Net.WebSockets.Client/tests/SendReceiveTest.cs