Commit Graph
8 Commits
Author SHA1 Message Date
Gert Driesen ba798b342d * System_test.dll.sources: Added IPv6MulticastOptionTest.cs and
MulticastOptionTest.cs.
* Socket.cs: In GetSocketOption, throw SocketException when (byte [])
option value is null. Use SocketError fields instead of using "magic"
number. In SetSocketOption (SocketOptionLevel, SocketOptionName, object)
only accept Linger, AddMembership, DropMembership and verify option
value.
* MulticastOption.cs: Added argument checks. Save interfaceIndex that is
passed to .ctor, and removed MonoTODO. Renamed arguments to match MS.
Reset InterfaceIndex when LocalAddress is modified, and reset
LocalAddress when InterfaceIndex is modified.
* UdpClient.cs: Modified exception to more closely match MS. Fixed
(int, AddressFamily) .ctor to construct IPv6 endpoint when family is
InterNetworkV6. Added null check for multicastAddr to (IPAddress)
JoinMulticastGroup overload. In (int, IPAddress) and (IPAddress,
IPAddress) overloads of JoinMulticastGroup throw SocketException when
client is IPv4. Added null check for multicastAddr to (IPAddress, int),
overload, and moved JoinMulticastGroup call after argument checks.
* IPv6MulticastOption.cs: Renamed argument names to match MS. Added
null check to set_Group. Added range check to set_InterfaceIndex.
* IPv6MulticastOptionTest.cs: Added .ctor and property tests.
* MulticastOptionTest.cs: Added .ctor and property tests.
* SocketTest.cs: Fixed compiler warnings. Improved tests for
closed socket. Added tests fr GetSocketOption, and SetSocketOption
overloads (for Linger, DontLinger, AddMembership and DropMembership).
* UdpClientTest.cs: Added .ctor and JoinMulticastGroup tests.

svn path=/trunk/mcs/; revision=137048
2009-06-28 16:35:54 +00:00
Robert Jordan 2f26089775 2009-06-26 Robert Jordan <[email protected]>
* *.cs: Upgrade to new NUnit style.


svn path=/trunk/mcs/; revision=136949
2009-06-26 12:20:08 +00:00
Gonzalo Paniagua Javier ee9a2c680c 2008-12-03 Gonzalo Paniagua Javier <[email protected]>
* UdpClientTest.cs: test closing a UDP socket while receiving.


svn path=/trunk/mcs/; revision=120603
2008-12-03 15:34:37 +00:00
Gert Driesen e99f202f1f * UdpClientTest.cs: Fixed line endings.
svn path=/trunk/mcs/; revision=90184
2007-11-22 19:13:19 +00:00
Dick Porter e3c85ecc7b 2007-10-30 Dick Porter <[email protected]>
* UdpClient.cs: Don't set the multicast option twice.  Fixes bug
	324033.

2007-10-30  Dick Porter  <[email protected]>

	* UdpClientTest.cs: Test for 324033.



svn path=/trunk/mcs/; revision=88456
2007-10-30 13:55:11 +00:00
Ilya Kharmatsky 9461572c1f Added 'Ignore' attribute under TARGET_JVM directive.
svn path=/trunk/mcs/; revision=71661
2007-01-25 11:26:04 +00:00
Dick Porter cbb74edc89 2007-01-11 Dick Porter <[email protected]>
* SocketTest.cs: 
	* UdpClientTest.cs: Test 2.0 additions



svn path=/trunk/mcs/; revision=70854
2007-01-11 13:31:42 +00:00
Dick Porter fbca4fb542 2005-02-23 Dick Porter <[email protected]>
* UdpClientTest.cs: Added, with UdpClientBroadcastTest from
        Chris Bacon <[email protected]>



svn path=/trunk/mcs/; revision=41100
2005-02-23 16:20:36 +00:00