Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarek Safar <marek.safar@gmail.com>2016-12-09 04:16:15 +0300
committerMarek Safar <marek.safar@gmail.com>2016-12-09 04:16:38 +0300
commitcf3f3aa8d1b9528cd6f2778d5ecfd250d3e6d040 (patch)
tree15f19a59c8a4ae6eb7a0a141965a28d81f85442d /mcs/class/System/Test
parent47365cd54b69a869c50e39223ff64dc8e4fb8889 (diff)
[System] Add new test
Diffstat (limited to 'mcs/class/System/Test')
-rw-r--r--mcs/class/System/Test/System.Net.Sockets/TcpClientTest.cs11
1 files changed, 11 insertions, 0 deletions
diff --git a/mcs/class/System/Test/System.Net.Sockets/TcpClientTest.cs b/mcs/class/System/Test/System.Net.Sockets/TcpClientTest.cs
index 5db3aadbc87..cefe3bebc59 100644
--- a/mcs/class/System/Test/System.Net.Sockets/TcpClientTest.cs
+++ b/mcs/class/System/Test/System.Net.Sockets/TcpClientTest.cs
@@ -199,5 +199,16 @@ namespace MonoTests.System.Net.Sockets
Assert.Fail ("ConnectMultiRefused #3");
}
}
+
+ [Test]
+#if FEATURE_NO_BSD_SOCKETS
+ [ExpectedException (typeof (PlatformNotSupportedException))]
+#endif
+ public void ExclusiveAddressUse ()
+ {
+ using (TcpClient client = new TcpClient ()) {
+ client.ExclusiveAddressUse = false;
+ }
+ }
}
}