Commit Graph
147 Commits
Author SHA1 Message Date
Sebastien Pouliot 1cc8e885d5 In Test/System.Net:
2010-01-21  Sebastien Pouliot  <[email protected]>

	* CookieContainerTest.cs: Additional test cases from Tom Philpot

In System.Net:
2010-01-21  Sebastien Pouliot  <[email protected]>

	* CookieContainer.cs: Fix to cloning and expiration. Patch
	by Tom Philpot <[email protected]>


svn path=/trunk/mcs/; revision=149976
2010-01-21 15:02:51 +00:00
Jonathan Pobst abee25f094 2010-01-15 Jonathan Pobst <[email protected]>
* HttpWebRequestTest.cs: Mark test WriteServerAborts as
	NotWorking.  Documented on bug #312968.

svn path=/trunk/mcs/; revision=149653
2010-01-15 22:45:38 +00:00
Sebastien Pouliot 7b3d84254a In Test/System.Net:
2010-01-12  Sebastien Pouliot  <[email protected]>

	* NetworkCredentialTest.cs: New. Unit tests.

In System.Net:
2010-01-12  Sebastien Pouliot  <[email protected]>

	* NetworkCredential.cs: Fix properties to never return null.

In .:
2010-01-12  Sebastien Pouliot  <[email protected]>

	* System_test.dll.sources: Add NetworkCredentialTest.cs to the tests


svn path=/trunk/mcs/; revision=149401
2010-01-12 13:07:44 +00:00
Sebastien Pouliot 4a1a02cb04 In Test/System.Net:
2009-12-24  Sebastien Pouliot  <[email protected]>

	* CookieContainerTest.cs: Split many tests into smaller test 
	cases. Add test cases for DefaultPerDomainCookieLimit and
	DefaultCookieLimit. Remove all [Category ("NotWorking")] since
	everything works now.

In System.Net:
2009-12-24  Sebastien Pouliot  <[email protected]>

	* Cookie.cs: Re-work ToString to be useable in more cases. Fix
	some issues found by Gendarme.
	* CookieContainer.cs: Fix all NonWorking (and new) unit tests.
	Implement removing oldest cookies when limits are reached.
	* CookieCollection.cs: Move to generics internally. Fix sort to 
	be closer to MS implementation (but still not 100% identical).
	Fix some issues found by Gendarme.


svn path=/trunk/mcs/; revision=148891
2009-12-24 15:24:13 +00:00
Alexandre Gomes 195ead9481 2009-10-23 Alexandre Gomes <[email protected]>
* Test/System.Net/WebClientTest.cs:
	* System.Net/WebClient.cs: Fixed GetWebRequest overriding problems, bug: 
	  https://bugzilla.novell.com/show_bug.cgi?id=549580


svn path=/trunk/mcs/; revision=144753
2009-10-23 18:26:49 +00:00
Gonzalo Paniagua Javier eff748464b 2009-07-22 Gonzalo Paniagua Javier <[email protected]>
* WebHeaderCollectionTest.cs: test for allowed characters in headers.


svn path=/trunk/mcs/; revision=138487
2009-07-23 02:57:41 +00:00
Gonzalo Paniagua Javier 874ad36781 Implement the 2.0 IsRestricted and add tests
svn path=/trunk/mcs/; revision=138472
2009-07-22 23:29:10 +00:00
Gonzalo Paniagua Javier bc9b46831d 2009-07-09 Gonzalo Paniagua Javier <[email protected]>
* HttpWebRequestTest.cs: use different ports for different tests since
	the shutdown might take a little bit and tests might conflict.


svn path=/trunk/mcs/; revision=137667
2009-07-10 03:21:35 +00:00
Gonzalo Paniagua Javier 0e2463e1d3 2009-07-07 Gonzalo Paniagua Javier <[email protected]>
* WebClientTest.cs: if we write the 100 response, reset the output
	stream writer.


svn path=/trunk/mcs/; revision=137500
2009-07-07 15:09:46 +00:00
Gert Driesen 8d403f0381 * WebConnectionStream.cs: Move and improve argument checks to match MS.
Modified CanRead and CanWrite to return false when instance is disposed.
* HttpWebRequestTest.cs: Enabled tests, and removed test that is now
covered by two separate CanTimeout tests for request and response
stream.
* HttpWebResponseStreamTest.cs: Enabled tests.

svn path=/trunk/mcs/; revision=137450
2009-07-06 19:58:00 +00:00
Gert Driesen ba7a4ef720 * HttpWebRequestTest.cs: Marked test notworking on 1.0 profile.
svn path=/trunk/mcs/; revision=137448
2009-07-06 19:34:33 +00:00
Gert Driesen 610473cb54 * HttpWebRequestTest.cs: Added tests for bug #511851. Added tests
for request stream. Fixed compiler warnings, and fixed code style.
* HttpWebResponseTest.cs: Added tests for response stream. Fixed
compiler warnings.

svn path=/trunk/mcs/; revision=137447
2009-07-06 19:30:33 +00:00
Gonzalo Paniagua Javier 09ff251a3a 2009-07-06 Gonzalo Paniagua Javier <[email protected]>
* HttpWebRequestTest.cs: add tests for POST + redirect and 401.


svn path=/trunk/mcs/; revision=137429
2009-07-06 17:40:28 +00:00
Gonzalo Paniagua Javier 0114287236 2009-06-28 Gonzalo Paniagua Javier <[email protected]>
* HttpWebRequestTest.cs: sleep between reads as we do in
	WebClientTest.


svn path=/trunk/mcs/; revision=137052
2009-06-28 21:37:45 +00:00
Gonzalo Paniagua Javier 834130ed3d 2009-06-27 Gonzalo Paniagua Javier <[email protected]>
* SocketResponder.cs: the listener might be closed right before
	Accept() is called and in that case we get an EINVAL.
	* WebClientTest.cs: now that we might send separate packets for
	headers and body, wait a little bit before checking socket.Available.


svn path=/trunk/mcs/; revision=137038
2009-06-28 02:33:55 +00:00
Gonzalo Paniagua Javier b022b6fd1a 2009-06-26 Gonzalo Paniagua Javier <[email protected]>
* HttpWebRequestTest.cs: add a bunch of tests provided by
	Bassan Tabbara.


svn path=/trunk/mcs/; revision=137021
2009-06-26 22:48:39 +00:00
Robert Jordan 7d405be2c1 2009-06-26 Robert Jordan <[email protected]>
* *.cs: Upgrade to new NUnit style.


svn path=/trunk/mcs/; revision=136948
2009-06-26 11:59:34 +00:00
Gert Driesen e9ff61a03b * HttpWebRequestTest.cs: Improved and enabled test for bug #510642.
* WebConnectionStream.cs: Keep count of all bytes written, and perform
write overflow check in both buffered and non-buffered writing (if
not using chunked transfer encoding). Fixes bug #510642.

svn path=/trunk/mcs/; revision=136570
2009-06-21 19:09:27 +00:00
Gert Driesen e9891de02a * SocketResponder.cs: Made a little more robust.
svn path=/trunk/mcs/; revision=136546
2009-06-20 14:17:09 +00:00
Gert Driesen 2fc81bb034 * HttpListener2Test.cs: Added test for bug #513849.
* HttpWebRequestTest.cs: Enabled test for bug #508027. Added test for
bug #513087.
* WebClientTest.cs: Added test for bug #484795, for Encoding property.

svn path=/trunk/mcs/; revision=136544
2009-06-20 13:22:17 +00:00
Andrés G. Aragoneses aa75a48a07 2009-06-16 Andrés G. Aragoneses <[email protected]>
* WebConnection.cs: propagate the exception to the request.    
        * WebException.cs: new internal ctor.
        * HttpWebRequest.cs: use new ctor to encapsulate the innerException.
        Fixes #323452.

2009-06-16  Andrés G. Aragoneses  <[email protected]>

        * WebRequestTest.cs: Drop NotWorking attrib, more accurate tests.


svn path=/trunk/mcs/; revision=136198
2009-06-16 04:21:58 +00:00
Andrés G. Aragoneses 400de13dd0 2009-06-09 Andrés G. Aragoneses <[email protected]>
* WebRequestTest.cs: Added tests for bug #323452.


svn path=/trunk/mcs/; revision=135818
2009-06-10 02:56:34 +00:00
Gert Driesen 6c3fbf55b9 * HttpWebRequestTest.cs: Added tests for bugs #465613, #510661,
#510642 and #508027.

svn path=/trunk/mcs/; revision=135573
2009-06-05 23:20:31 +00:00
Gert Driesen ae22b8dbe3 * CookieContainer.cs: Provide meaningful information in exception
messages, and improve compatibility with MS. Modified set_Capacity to
no longer change MaxCookieSize when new value is less than
MaxCookieSize.
* CookieTest.cs: Added test for Path.
* CookieContainerTest.cs: Added and improved .ctor tests.
Improved tests for Capacity and MaxCookieSize. Added tests for
PerDomainCapacity. Added tests for Add overloads, GetCookieHeader,
GetCookies and SetCookies. Added test for bug #421827.

svn path=/trunk/mcs/; revision=134295
2009-05-17 15:06:17 +00:00
Atsushi Eno 812c8fcf61 2009-05-02 Atsushi Enomoto <[email protected]>
* CredentialCache.cs : implement all not-implemented methods.
	  Patch by Mineda Nozomi. Close bug #499556.

	* CredentialCacheTest.cs : new tests for get/add/remove.
	  Patch by Mineda Nozomi.


svn path=/trunk/mcs/; revision=133400
2009-05-02 19:55:48 +00:00
Gonzalo Paniagua Javier 35c3b48ade 2009-04-21 Gonzalo Paniagua Javier <[email protected]>
* DnsTest.cs: new IP for go-mono and fix AsyncResolve test.


svn path=/trunk/mcs/; revision=132294
2009-04-21 17:01:42 +00:00
Sebastien Pouliot 3aef2f5503 2009-04-21 Sebastien Pouliot <[email protected]>
* EndPointTest.cs: New


svn path=/trunk/mcs/; revision=132246
2009-04-21 11:59:15 +00:00
Gert Driesen 7cbe766dac * DnsTest.cs: Use Assert syntax, and spaces to tabs. Added tests
for argument checks.
* Dns.cs: BeginGetHostAddresses - renamed argument to match MS,
reject "any" IP addresses. BeginGetHostEntry - renamed argument
to match MS, reject "any" IP addresses. GetHostEntry - reject
"any" IP addresses. GetHostAddresses - reject "any" IP addresses.
GetHostByName - use "hostName" as paramname in ANE.

svn path=/trunk/mcs/; revision=126281
2009-02-08 19:43:44 +00:00
Gert Driesen 55e84a759f * HttpWebRequestTest.cs: Added Not-Modified-Since test. Updated
bug numbers.

svn path=/trunk/mcs/; revision=126263
2009-02-08 10:33:09 +00:00
Gert Driesen 2554a51eb9 * HttpListener2Test.cs: Make tests quiet.
* HttpWebRequestTest.cs: Added test for bug #471782.

svn path=/trunk/mcs/; revision=125852
2009-02-05 12:06:22 +00:00
Gonzalo Paniagua Javier 86c70cb777 2009-01-20 Gonzalo Paniagua Javier <[email protected]>
* IPAddressTest.cs: tests for bug #467472.


svn path=/trunk/mcs/; revision=123858
2009-01-20 06:38:05 +00:00
Gonzalo Paniagua Javier 4181e28735 2009-01-16 Gonzalo Paniagua Javier <[email protected]>
* FtpWebRequestTest.cs: add directory listing test when the $HOME is
	not /.


svn path=/trunk/mcs/; revision=123616
2009-01-16 15:40:23 +00:00
Gonzalo Paniagua Javier b5ac5d886d 2009-01-12 Gonzalo Paniagua Javier <[email protected]>
* FtpWebRequestTest.cs: test deleting a file.


svn path=/trunk/mcs/; revision=123136
2009-01-12 22:03:32 +00:00
Gonzalo Paniagua Javier eb75e457af 2008-11-18 Gonzalo Paniagua Javier <[email protected]>
* HttpListener2Test.cs: make sure we dispose the listener.


svn path=/trunk/mcs/; revision=119226
2008-11-18 21:52:27 +00:00
Gonzalo Paniagua Javier 9f5425dccb 2008-11-17 Gonzalo Paniagua Javier <[email protected]>
* HttpListener2Test.cs: (CreateNS) set a default read/write timeout
	of 5s.


svn path=/trunk/mcs/; revision=119033
2008-11-17 15:30:53 +00:00
Gonzalo Paniagua Javier 96679ba6ec 2008-11-13 Gonzalo Paniagua Javier <[email protected]>
* FtpWebRequestTest.cs: the upload test now passes with the MS
	runtime. Added another test for download.


svn path=/trunk/mcs/; revision=118784
2008-11-13 22:56:58 +00:00
Gonzalo Paniagua Javier 9e17fdcd7f 2008-11-12 Gonzalo Paniagua Javier <[email protected]>
* HttpListener2Test.cs: Fixed Test7.


svn path=/trunk/mcs/; revision=118655
2008-11-12 21:38:54 +00:00
Gonzalo Paniagua Javier 8f1e89a022 2008-11-03 Gonzalo Paniagua Javier <[email protected]>
* FtpWebRequestTest.cs: add test for bug 333985.


svn path=/trunk/mcs/; revision=117839
2008-11-04 03:05:45 +00:00
Gonzalo Paniagua Javier 6743d87584 2008-10-30 Gonzalo Paniagua Javier <[email protected]>
* HttpWebResponseTest.cs:
	* SocketResponder.cs:
	* HttpWebRequestTest.cs: don't pretend to be a 1.1 server or the
	socket will stay open. Timeout for Ntlm test is 5s now.

svn path=/trunk/mcs/; revision=117510
2008-10-30 19:12:52 +00:00
Gert Driesen 43e5b5d27a * HttpWebRequestTest.cs: Fixed test for bug #429200.
svn path=/trunk/mcs/; revision=116431
2008-10-19 18:07:02 +00:00
Gert Driesen 5a2e778eae * HttpWebRequestTest.cs: Added test for bug #429200.
svn path=/trunk/mcs/; revision=116357
2008-10-18 12:55:28 +00:00
Gonzalo Paniagua Javier 1430a2179b 2008-10-08 Gonzalo Paniagua Javier <[email protected]>
* HttpWebRequestTest.cs: mini-test case for NTLM auth.


svn path=/trunk/mcs/; revision=115278
2008-10-08 21:56:47 +00:00
Atsushi Eno 8d708f6fbd 2008-08-06 Atsushi Enomoto <[email protected]>
* IPAddress.cs : several IPv4 parsing fix exposed by bug #411920.

	* IPAddressTest.cs : added test strings for bug #411920 as well as
	  enabling some ipv4ParseOK strings.


svn path=/trunk/mcs/; revision=109737
2008-08-06 05:21:04 +00:00
Gert Driesen 4c899bc324 * HttpWebResponse.cs: Initialize contentLength in ctor, as it must
remain accessible after the response is disposed (and the headers are
no longer available). Adding missing disposed checks in properties
(except for StatusCode) and GetResponseHeader. On the 2.0 profile,
headers must remain accessible after the HttpWebResponse is disposed.
* System_test.dll.sources: Added HttpWebResponseTest.cs.
* HttpWebResponseTest.cs: Enabled tests.

svn path=/trunk/mcs/; revision=108804
2008-07-25 18:42:53 +00:00
Gert Driesen 3c66cb9da6 * HttpListener2Test.cs: Added test for multiple responses.
* HttpWebResponseTest.cs: Added tests for disposed checks.

svn path=/trunk/mcs/; revision=107135
2008-07-03 08:40:58 +00:00
Gert Driesen 1dcde62f36 * FileWebRequestTest.cs: Now that we have proper locking for file
deletes on unix, bug #323388 applies to unix as well.

svn path=/trunk/mcs/; revision=101100
2008-04-18 08:49:53 +00:00
Geoff Norton 2a4a01d024 In Test/System.Net:
2008-04-06  Geoff Norton  <[email protected]>

	* HttpListener2Test.cs:
	* HttpListenerRequestTest.cs: HttpListener Basic authenticationt test
	from Maciej Paszta <[email protected]>


svn path=/trunk/mcs/; revision=99957
2008-04-06 15:02:40 +00:00
Daniel Nauck 1533e98656 2008-02-09 Daniel Nauck <[email protected]>
* CookieContainerTest.cs: added some not working Add/Expired tests


svn path=/trunk/mcs/; revision=95332
2008-02-09 13:30:33 +00:00
Daniel Nauck 623dcb1757 2008-02-09 Daniel Nauck <[email protected]>
* Cookie.cs: implemented HttpOnly
	* CookieTest.cs: added tests for public fields


svn path=/trunk/mcs/; revision=95323
2008-02-09 11:49:28 +00:00
Gert Driesen b26da0a865 * IPAddress.cs (Parse): Changed argument name to match MS.
(TryParse): Changed argument name to match MS.
(ParseIPV4): Only treat zero-length or " " address as empty on 1.0
profile. On 2.0 profile, only ignore characters after blank if last
part is valid hex string.
* IPv6Address.cs: Removed extra spaces and tabs.
* IPAddressTest.cs: Remove use of deprecated Assertion. Improved
existing tests.

svn path=/trunk/mcs/; revision=94052
2008-01-27 15:20:02 +00:00