Commit Graph
98 Commits
Author SHA1 Message Date
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
Gert Driesen 5b67f88602 * HttpWebRequestTest.cs: Added tests for case-sensitive dealing with
HTTP method.
* System_test.dll.sources: Added SocketResponder.cs.
* SocketResponser.cs: Utility class for tests that require a listener.

svn path=/trunk/mcs/; revision=71912
2007-01-29 21:25:54 +00:00
Ilya Kharmatsky ee3f6961bd Fixed missed bracket under 'TARGET_JVM' directive.
svn path=/trunk/mcs/; revision=71861
2007-01-29 11:22:06 +00:00
Ilya Kharmatsky 9968e7c515 Excluded under 'TARGET_JVM' not working test.
svn path=/trunk/mcs/; revision=71816
2007-01-28 18:35:16 +00:00
Gert Driesen 098d7508d8 * IPAddressTest.cs: Added test for invalid addresses. Fixed 4-byte
test on 2.0 profile.
* IPAddress.cs: Provide more meaningful exception message on 2.0
profile.

svn path=/trunk/mcs/; revision=71811
2007-01-28 16:23:05 +00:00
Gert Driesen d5c2cefed5 * FileWebRequest.cs: Fixed PreAuthenticate and Proxy properties to
no longer throw NotSupportedException. No longer store ContentLength
in headers. Do not allow null or zero-length method. Allow timeout
to be set to -1 (infine). Only disallow GET, HEAD and CONNECT requests.
Removed workarounds for bug #24943. In (Begin)GetRequest overwrite
file if it already exists. Binary serialization compatibility fixes.
* FileWebResponse.cs: Return application/octet-stream as ContentType.
* FileWebRequestTest.cs: Reworked tests to no longer rely on TMPDIR.
Added tests for ConnectionGroupName, ContentLength, ContentType,
Credentials, GetRequestStream, GetResponse, Method, PreAuthenticate,
Proxy, RequestUri, Timeout. Added binary serialization compatibility
tests.
* FileWebResponseTest.cs: Added tests for ContentLength, ContentType,
GetResponseStream, Headers, ResponseUri. 
* System_test.dll.sources: Added FileWebResponseTest.cs.

svn path=/trunk/mcs/; revision=71809
2007-01-28 15:52:04 +00:00
Gert Driesen 51d19a431c * WebHeaderCollection.cs: Fixed binary serialization compatibility with MS.
* WebHeaderCollectionTest.cs: Added tests for binary serialization 
compatibility.

svn path=/trunk/mcs/; revision=71807
2007-01-28 13:16:24 +00:00
Gert Driesen ad15fe1510 * WebProxyTest.cs: Move IsBypassed null check to separate test, and
fixed it for 2.0 profile. Added test for binary serialization.
* WebProxy.cs: Lazy init bypassList. Fixes for binary serialization
compatibility. Added stub for UseDefaultCredentials (2.0). On 2.0
profile, throw ArgumentNullException in IsBypassed if host is null.

svn path=/trunk/mcs/; revision=71806
2007-01-28 13:11:58 +00:00
Ilya Kharmatsky 06e02f1ca1 Workaround Grasshopper's bugs with 'Ignore' and 'NotWorking' attribute / category.
svn path=/trunk/mcs/; revision=71680
2007-01-25 16:43:58 +00:00
Miguel de Icaza 8a69fd66c9 2007-01-11 Miguel de Icaza <[email protected]>
* HttpListener2Test.cs: Put a bunch of verbs that would not be
	allowed. 

2007-01-11  Miguel de Icaza  <[email protected]>

	* HttpListenerRequest.cs (SetRequestLine): Add validation for the
	verbs. 


svn path=/trunk/mcs/; revision=70894
2007-01-12 00:56:10 +00:00
Gert Driesen 819d4c3f16 * IPAddress.cs: On 1.1, 4-byte addresses are not supported in the
ctor. Added null checks for the address passed in the ctors.
* IPAddressTest.cs: Added 4-byte and null address tests.

svn path=/trunk/mcs/; revision=70191
2006-12-28 21:18:12 +00:00
Andrew Skiba 2936beb257 make indexers test compile on 2.0
svn path=/trunk/mcs/; revision=68183
2006-11-20 10:31:03 +00:00
Gonzalo Paniagua Javier bca513c49f 2006-11-15 Gonzalo Paniagua Javier <[email protected]>
* WebHeaderCollectionTest.cs: the Indexers test only compiles on 1.x


svn path=/trunk/mcs/; revision=67951
2006-11-15 21:26:04 +00:00
Dick Porter c76e1d8426 2006-11-07 Dick Porter <[email protected]>
* DnsTest.cs: GetHostByAddressString5() should only throw
        SocketException on pre-2.0 profiles



svn path=/trunk/mcs/; revision=67498
2006-11-07 21:26:42 +00:00
Dick Porter d842bc4e62 2006-11-03 Dick Porter <[email protected]>
* DnsTest.cs: Re-enable GetHostEntry



svn path=/trunk/mcs/; revision=67314
2006-11-03 16:34:03 +00:00
Zoltan Varga 0e0cebc85a 2006-10-22 Zoltan Varga <[email protected]>
* DnsTest.cs: Disable GetHostEntry test as it currently fails.

svn path=/trunk/mcs/; revision=66882
2006-10-22 14:17:08 +00:00
Gonzalo Paniagua Javier daf26ab926 2006-08-30 Gonzalo Paniagua Javier <[email protected]>
* HttpListener2Test.cs: new tests for headers sent separate from body
	and together.


svn path=/trunk/mcs/; revision=64588
2006-08-31 01:05:42 +00:00
Gonzalo Paniagua Javier 9b1b55fb95 2006-08-30 Gonzalo Paniagua Javier <[email protected]>
* HttpListener2Test.cs: test using StreamReader from InputStream.


svn path=/trunk/mcs/; revision=64572
2006-08-30 21:36:21 +00:00
Miguel de Icaza 82bdae5ce5 2006-08-20 Miguel de Icaza <[email protected]>
* HttpListener2Test.cs: Add test case for bug #79112

	Question: why in the response I do not get my `Miguel is love' message?


svn path=/trunk/mcs/; revision=64115
2006-08-20 21:13:50 +00:00
Chris Toshok e11d804054 In System.Net:
2006-04-03  Chris Toshok  <[email protected]>

	* HttpWebResponse.cs (ContentEncoding): return "" if the header
	isn't present.

In Test/System.Net:
2006-04-03  Chris Toshok  <[email protected]>

	* HttpWebRequestTest.cs (Missing_ContentEncoding): add test to
	handle missing content encoding header.


svn path=/trunk/mcs/; revision=58978
2006-04-03 21:33:43 +00:00
Atsushi Eno c6966cfecc 2006-03-28 Atsushi Enomoto <[email protected]>
* Dns.cs : filled missing NET_2_0 members.

	* DnsTest.cs : added test for GetHostEntry.


svn path=/trunk/mcs/; revision=58635
2006-03-28 01:10:54 +00:00
Atsushi Eno 370fb4b787 2006-03-28 Atsushi Enomoto <[email protected]>
* IPAddress.cs : ugh, I was testing with run-test-ondotnet, not
	  run-test. Those IPv6 properties needed to be reimplemented.

	* IPAddressTest.cs : actually #11 in TryParse() is not working.
	  added more tests on IsIPv6Blah properties.


svn path=/trunk/mcs/; revision=58634
2006-03-28 01:09:20 +00:00
Atsushi Eno 82e07f0f17 2006-03-27 Atsushi Enomoto <[email protected]>
* IPAddress.cs : added NET_2_0 TryParse() and IPv6 related properties.

	* IPAddressTest.cs : added some tests for TryParse() and IPv6 related
	  properties.


svn path=/trunk/mcs/; revision=58613
2006-03-27 19:12:24 +00:00