Commit Graph
12 Commits
Author SHA1 Message Date
Marcos Henrich b89b5c46d6 Test WebClient.UploadFileTaskAsync ContentType. Covers 19529. 2014-09-23 15:30:50 +01:00
Marek Safar 22ca1862ee Fixes build 2014-06-04 19:02:40 +02:00
Alex Rønne Petersen a0064f9d5a [System] Fix WebClientTest build in net_2_0.
CancellationTokenSource is a 4.0 thing.
2014-06-03 23:33:30 +02:00
marcos henrich 0b1ea4edc9 Test WebClient asynchronous uploads cancellation.
Tests that UploadStringAsync triggers UploadStringCompleted with Cancelled == true.
Tests that UploadDataAsync triggers UploadDataCompleted with Cancelled == true.
Tests that UploadValuesAsync triggers UploadValuesCompleted with Cancelled == true.
Tests that UploadFileAsync triggers UploadFileCompleted with Cancelled == true.
2014-06-02 19:04:43 +01:00
Sebastien Pouliot b43764a214 Do not assume the unit tests can write in the application directory (e.g. iOS devices) 2013-03-18 21:30:47 -04:00
Sebastien Pouliot caa800ed37 Add WebClient.Proxy unit test 2012-02-05 11:55:36 -05: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 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
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
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
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
Miguel de Icaza 23b3264679 Fix for #81066 plus test
svn path=/trunk/mcs/; revision=73988
2007-03-09 06:08:25 +00:00