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:
authorMartin Baulig <martin.baulig@gmail.com>2012-06-27 04:22:10 +0400
committerMartin Baulig <martin.baulig@gmail.com>2012-06-27 04:26:07 +0400
commitf4d96d2fff83758a51001b99d26d43500276f50a (patch)
treebf5d5b9918387fd52d4274167eac8f9ac4aab292
parentcad82120b6e39be862cdc43ab1a7407ccdc58831 (diff)
Fix UdpClientTest.UdpClientBroadcastTest().mono-2.11.2
You must not use Send() with an endpoint after using either the hostname constructor or calling Connect(); see the MSDN docs.
-rw-r--r--mcs/class/System/Test/System.Net.Sockets/UdpClientTest.cs4
1 files changed, 1 insertions, 3 deletions
diff --git a/mcs/class/System/Test/System.Net.Sockets/UdpClientTest.cs b/mcs/class/System/Test/System.Net.Sockets/UdpClientTest.cs
index 4eb60044aa5..79028e155ab 100644
--- a/mcs/class/System/Test/System.Net.Sockets/UdpClientTest.cs
+++ b/mcs/class/System/Test/System.Net.Sockets/UdpClientTest.cs
@@ -383,7 +383,6 @@ namespace MonoTests.System.Net.Sockets {
}
[Test] // .ctor (String, Int32)
- [Category ("NotOnMac")]
public void Constructor6 ()
{
MyUdpClient client;
@@ -480,10 +479,9 @@ namespace MonoTests.System.Net.Sockets {
}
[Test]
- [Category ("NotOnMac")]
public void UdpClientBroadcastTest ()
{
- UdpClient client = new UdpClient (new IPEndPoint (IPAddress.Loopback, 1234));
+ UdpClient client = new UdpClient ();
byte[] bytes = new byte[] {10, 11, 12, 13};
try {