1 // System.Net.Sockets.UdpClientTest.cs
4 // Chris Bacon <chris.bacon@docobo.co.uk>
10 using System.Net.Sockets;
11 using NUnit.Framework;
13 namespace MonoTests.System.Net.Sockets {
15 public class UdpClientTest {
17 public void UdpClientBroadcastTest ()
19 bool exThrown = false;
20 UdpClient client = new UdpClient (new IPEndPoint (IPAddress.Loopback, 1234));
21 byte[] bytes = new byte[] {10, 11, 12, 13};
24 client.Send (bytes, bytes.Length, new IPEndPoint (IPAddress.Broadcast, 1235));
25 } catch (SocketException) {
28 Assert.IsFalse(exThrown, "UdpClient Broadcast #1");