Commit Graph
126 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
Arina Itkes c5c44ce2af TARGET_JVM: mark some tests with NotWorking under TARGET_JVM
svn path=/trunk/mcs/; revision=90140
2007-11-22 10:33:32 +00:00
Paolo Molaro f51d258fc9 www.go-mono.com changed ip address.
svn path=/trunk/mcs/; revision=89456
2007-11-12 10:50:55 +00:00
Miguel de Icaza 520ed33718 Add test, fix regression
svn path=/trunk/mcs/; revision=88328
2007-10-27 18:43:15 +00:00
Miguel de Icaza 58228927a3 2007-10-27 Miguel de Icaza <[email protected]>
*  HttpListener.cs (Close): Closing does not mean dispose the
	object.   This allows Start/Stop/Start to be called as many times
	as desired.

	Fixes #337368

svn path=/trunk/mcs/; revision=88322
2007-10-27 17:44:16 +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 9c722e666c Only applies to 2.0 profile.
svn path=/trunk/mcs/; revision=86668
2007-09-30 11:43:46 +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
Konstantin Triger 3b9df07221 TARGET_JVM: ServicePoint.BindIPEndPointDelegate is not supported
svn path=/trunk/mcs/; revision=84092
2007-08-14 16:16:18 +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
Konstantin Triger 57c46b8f0e TARGET_JVM: ignore failures in Sys.Net
svn path=/trunk/mcs/; revision=76626
2007-05-03 16:34:41 +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
Miguel de Icaza 23b3264679 Fix for #81066 plus test
svn path=/trunk/mcs/; revision=73988
2007-03-09 06:08:25 +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 a157e4805e Fix the test, by removing extra /
svn path=/trunk/mcs/; revision=71499
2007-01-23 03:32:46 +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
Andrew Skiba 7f750677b4 exclude stuff for TARGET_JVM
svn path=/trunk/mcs/; revision=67935
2006-11-15 16:26:52 +00:00