Commit Graph
120 Commits
Author SHA1 Message Date
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
Daniel Nauck 65eb7e9ac1 2008-01-26 Daniel Nauck <[email protected]>
* Cookie.cs: set Version to '1' if Port is set,
	don't include path and domain informations when version is 0,
	match ToString () output with .NET 2.0,
	fixes bug #316017

	* CookieTest.cs: enabled ToString () test,
	added Version property test


svn path=/trunk/mcs/; revision=94013
2008-01-26 19:05:46 +00:00
Daniel Nauck bdc6efa4ea 2008-01-26 Daniel Nauck <[email protected]>
* CookieTest.cs: added tests for Cookie.ToString (), see bug #316017,
	fixed line endings


svn path=/trunk/mcs/; revision=93993
2008-01-26 15:54:20 +00:00
Zoltan Varga d42b792e9a 2008-01-17 Zoltan Varga <[email protected]>
* HttpWebRequestTest.cs: Disable #353495 since it fails on the 2.0 profile.

svn path=/trunk/mcs/; revision=93146
2008-01-17 11:45:30 +00:00
Atsushi Eno 8be14ccb42 2008-01-15 Atsushi Enomoto <[email protected]>
* MonoHttpDate.cs : Parse() should return Local time. Fixed bug
	  #353495.

	* HttpWebRequestTest.cs : added test for bug #353495.


svn path=/trunk/mcs/; revision=92931
2008-01-15 10:07:48 +00:00
Gert Driesen 1ee31fadfe * WebClient.cs: Modified argument checks to match MS, and wrap
exceptions in a WebException. Fixes bug #343064.
* WebClient.cs: Added tests for argument checks.

svn path=/trunk/mcs/; revision=90581
2007-12-03 19:09:56 +00:00
Gert Driesen 194dd39ccd * WebProxyTest.cs: Remove unused fields.
svn path=/trunk/mcs/; revision=87862
2007-10-21 09:32:47 +00:00
Gert Driesen b97ac2ba11 * WebRequestTest.cs: Fixed test for serialization ctor to match
1.0 profile change. Added trivial tests to argument null checks.
Added test for DefaultWebProxy. Fixed line endings.
* WebRequest.cs: Changed serialization ctor to throw NIE on 1.0
profile. Cache default proxy, but still allow it to be explicitly set 
to null.

svn path=/trunk/mcs/; revision=87517
2007-10-15 15:46:36 +00:00
Gert Driesen e722420bd3 * HttpListenerRequest.cs: Do not store 'method' in upper case, but
instead use case-insensitive comparison.
* HttpListenerRequestTest.cs: Added test for HttpMethod.

svn path=/trunk/mcs/; revision=86673
2007-09-30 12:33:06 +00:00
Gert Driesen affbed9b01 * HttpListenerRequestTest.cs: Added test for HasEntityBody.
* HttpListener2Test.cs: Removed CWL.
* HttpListenerRequest.cs: Removed dead code. USe String.Length to
check for zero-length string. Use instance field for is_chunked, and
also set it for GET/HEAD/DELETE. Fixed HasEntityBody to return true
when Content-Length > 0, or Transfer-Encoding is chunked.
* System_test.dll.sources: Added HttpListenerRequestTest.cs.

svn path=/trunk/mcs/; revision=86666
2007-09-30 09:09:22 +00:00
Atsushi Eno b21b41fb95 2007-08-29 Atsushi Enomoto <[email protected]>
* IPAddress.cs, IPv6Address.cs : (ToString) output ScopeId.

	* IPAddressTest.cs : added an address with scope id to parse/format
	  test.


svn path=/trunk/mcs/; revision=85016
2007-08-29 18:00:42 +00:00
Dick Porter d4402975ad 2007-06-28 Chris Howie <[email protected]>
* ServicePoint.cs: Implemented BindIPEndPointDelegate.
	* FtpWebRequest.cs: Respect ServicePoint.BindIPEndPointDelegate.
	* WebConnection.cs: Respect ServicePoint.BindIPEndPointDelegate.

2007-06-28  Chris Howie  <[email protected]>

	* ServicePointTest.cs: Add some loose tests for
	ServicePoint.BindIPEndPointDelegate.


svn path=/trunk/mcs/; revision=83666
2007-08-08 13:14:21 +00:00
Rodrigo Kumpera 4a7e25936c 2007-08-01 Rodrigo Kumpera <[email protected]>
* HttpListener2Test.cs: Fixed Cookie Test 



svn path=/trunk/mcs/; revision=83206
2007-08-01 16:05:01 +00:00
Rodrigo Kumpera bb2e0c7a37 2006-07-17 Rodrigo Kumpera <[email protected]>
* HttpListener2Test.cs: Tests for cookie receiving and sending, related to bug #81627


svn path=/trunk/mcs/; revision=82152
2007-07-17 23:58:38 +00:00
Gert Driesen 5ad1de2572 * HttpWebRequestTest.cs: Fixed and enabled InternalServerError test.
Added test for response without Content-Length.

svn path=/trunk/mcs/; revision=82123
2007-07-17 17:39:41 +00:00
Gert Driesen 226629d3d3 * HttpWebRequestTest.cs: Remove usage of deprecated Assertion class.
Fixed Sync test.  Fixed InternalServerError to pass on .NET 2.0, and
renumbered tests. Added test for bug #81504.

svn path=/trunk/mcs/; revision=82014
2007-07-15 17:55:12 +00:00
Gert Driesen 2d5643d6a7 * HttpWebRequestTest.cs: Added test for exception thrown on read
timeout. Added tests for bug #81624 and #81671.

svn path=/trunk/mcs/; revision=77634
2007-05-18 12:26:21 +00:00
Marek Habersack da4429171a 2007-04-23 Marek Habersack <[email protected]>
* CookieContainerTest.cs: the GetCookies test works now.

2007-04-23  Marek Habersack  <[email protected]>

	* CookieContainer.cs: Sort the collection by the path relevance before returning from
	the GetCookies method. Fixes bug #81421.

svn path=/trunk/mcs/; revision=76101
2007-04-23 09:49:08 +00:00
Gert Driesen 13b7e81515 * SocketResponder.cs: Thread-safety fixes.
* TcpClientTest.cs: Enabled test for bug #81105.

svn path=/trunk/mcs/; revision=76068
2007-04-22 16:19:52 +00:00
Gert Driesen e291e13d3a * CookieContainerTest.cs: Removed usage of deprecated Asssertion
class. Added test for bug #81421.

svn path=/trunk/mcs/; revision=76063
2007-04-22 16:01:17 +00:00
Vladimir Krasnov 4a1093a70a * removed tests with not supported calls for TARGET_JVM because of validation failures
svn path=/trunk/mcs/; revision=73886
2007-03-07 13:45:42 +00:00
Gert Driesen 464075aff1 * HttpWebRequest.cs: Allow Proxy to be set to null on 2.0 profile.
* HttpWebRequestTest.cs: Added test for bug #80944.

svn path=/trunk/mcs/; revision=73389
2007-02-24 10:02:33 +00:00
Ilya Kharmatsky 392b66dc17 In FileWebRequestTest and HttpWebRequestTest excluded not working under TARGET_JVM configuration tests.
svn path=/trunk/mcs/; revision=72468
2007-02-08 12:27:24 +00:00
Gert Driesen 1031480905 * SocketResponder.cs: Fixed typo. Moved to correct namespace.
svn path=/trunk/mcs/; revision=72181
2007-02-02 17:07:24 +00:00
Gert Driesen a13eda9ad1 * FileWebRequestTest.cs: Separate tests that fail on Windows due to
bug #80700, and ignore them on Windows.

svn path=/trunk/mcs/; revision=72146
2007-02-02 06:29:26 +00:00
Gert Driesen 67270c1822 * WebProxy.cs: In IsBypassed, move address check back to satify unit
tests.
* WebProxyTest.cs: Added tests that cover regression introduced by previous
change.

svn path=/trunk/mcs/; revision=72129
2007-02-01 19:58:07 +00:00
Ilya Kharmatsky 66285529d7 Excluded the tests, which are not working under Grasshopper (all changes under 'TARGET_JVM' directive)
svn path=/trunk/mcs/; revision=72030
2007-01-31 15:20:18 +00:00
Atsushi Eno 778cbd99fe 2007-01-30 Atsushi Enomoto <[email protected]>
* HttpWebRequestTest.cs : use correct attribute.


svn path=/trunk/mcs/; revision=71940
2007-01-30 06:19:53 +00:00