Skip to content

Commit

Permalink
socket tests for uwp
Browse files Browse the repository at this point in the history
  • Loading branch information
caesar-chen committed Jun 14, 2017
1 parent 615f7a2 commit 7884679
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -623,6 +623,7 @@ await RunWithConnectedNetworkStreamsAsync((server, client) =>
[InlineData(4096)]
[InlineData(4095)]
[InlineData(1024*1024)]
[ActiveIssue(20135, TargetFrameworkMonikers.Uap)]
public async Task CopyToAsync_AllDataCopied(int byteCount)
{
await RunWithConnectedNetworkStreamsAsync(async (server, client) =>
Expand Down
1 change: 1 addition & 0 deletions src/System.Net.Sockets/tests/FunctionalTests/SelectTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -177,6 +177,7 @@ public void Select_Error_OneReadyAtATime()
[Theory]
[InlineData(SelectMode.SelectRead)]
[InlineData(SelectMode.SelectError)]
[ActiveIssue(21057, TargetFrameworkMonikers.Uap)]
public void Poll_NotReady(SelectMode mode)
{
KeyValuePair<Socket, Socket> pair = CreateConnectedSockets();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,7 @@ public void Disposed_Throw(SocketImplementationType type)
[Theory]
[InlineData(SocketImplementationType.APM)]
[InlineData(SocketImplementationType.Async)]
[ActiveIssue(20135, TargetFrameworkMonikers.Uap)]
public void NullArgs_Throw(SocketImplementationType type)
{
int port;
Expand Down Expand Up @@ -116,6 +117,7 @@ public void NotConnected_Throw()
[Theory]
[InlineData(SocketImplementationType.APM)]
[InlineData(SocketImplementationType.Async)]
[ActiveIssue(20135, TargetFrameworkMonikers.Uap)]
public void NullList_Throws(SocketImplementationType type)
{
ArgumentNullException ex = Assert.Throws<ArgumentNullException>(() =>
Expand All @@ -130,6 +132,7 @@ public void NullList_Throws(SocketImplementationType type)
[Theory]
[InlineData(SocketImplementationType.APM)]
[InlineData(SocketImplementationType.Async)]
[ActiveIssue(20135, TargetFrameworkMonikers.Uap)]
public void NullElement_Ignored(SocketImplementationType type)
{
SendPackets(type, (SendPacketsElement)null, 0);
Expand All @@ -139,6 +142,7 @@ public void NullElement_Ignored(SocketImplementationType type)
[Theory]
[InlineData(SocketImplementationType.APM)]
[InlineData(SocketImplementationType.Async)]
[ActiveIssue(20135, TargetFrameworkMonikers.Uap)]
public void EmptyList_Ignored(SocketImplementationType type)
{
SendPackets(type, new SendPacketsElement[0], SocketError.Success, 0);
Expand Down Expand Up @@ -175,6 +179,7 @@ public void NormalBufferRange_Success(SocketImplementationType type)
[Theory]
[InlineData(SocketImplementationType.APM)]
[InlineData(SocketImplementationType.Async)]
[ActiveIssue(20135, TargetFrameworkMonikers.Uap)]
public void EmptyBuffer_Ignored(SocketImplementationType type)
{
SendPackets(type, new SendPacketsElement(new byte[0]), 0);
Expand All @@ -183,6 +188,7 @@ public void EmptyBuffer_Ignored(SocketImplementationType type)
[Theory]
[InlineData(SocketImplementationType.APM)]
[InlineData(SocketImplementationType.Async)]
[ActiveIssue(20135, TargetFrameworkMonikers.Uap)]
public void BufferZeroCount_Ignored(SocketImplementationType type)
{
SendPackets(type, new SendPacketsElement(new byte[10], 4, 0), 0);
Expand All @@ -205,6 +211,7 @@ public void BufferMixedBuffers_ZeroCountBufferIgnored(SocketImplementationType t
[Theory]
[InlineData(SocketImplementationType.APM)]
[InlineData(SocketImplementationType.Async)]
[ActiveIssue(20135, TargetFrameworkMonikers.Uap)]
public void BufferZeroCountThenNormal_ZeroCountIgnored(SocketImplementationType type)
{
Assert.True(Capability.IPv6Support());
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -657,6 +657,7 @@ public void SendRecvPollSync_TcpListener_Socket(IPAddress listenAt, bool pollBef
}

[Fact]
[ActiveIssue(20135, TargetFrameworkMonikers.Uap)]
public async Task SendRecv_0ByteReceive_Success()
{
using (Socket listener = new Socket(AddressFamily.InterNetwork, SocketType.Stream, ProtocolType.Tcp))
Expand Down

0 comments on commit 7884679

Please sign in to comment.