Commit Graph
22 Commits
Author SHA1 Message Date
Marek Safar ad8e0f742e StreamWriter async methods cannot call base TextWriter async methods. Fixes #11979 2013-05-09 17:42:28 +02:00
Marek Safar 185743cacd Rewrite of async StreamReader/StreamWritter operations to not fail on subsequent async call. Fixes #9761 2013-02-01 18:29:54 +01:00
Marek Safar 2d12cfaf80 Flush StreamWriter buffer even if underlying stream is kept open. Fixes #7510 2012-10-04 11:53:14 +01:00
Marek Safar 7b51bb0cb1 Implement stream async methods 2011-09-28 08:09:33 +01:00
Gert Driesen be1e75c77d * StreamWriterTest.cs: Only check paramname for buffersize exception on
2.0 profile.

svn path=/trunk/mcs/; revision=110639
2008-08-16 09:39:34 +00:00
Gert Driesen 77d2788360 * StreamWriterTest.cs: Removed Constructor2_Path_Whitespace test, as
it only applies to Windows (and is duplicate for illegal chars test).
Only check paramname for buffersize exception on 2.0 profile.

svn path=/trunk/mcs/; revision=110638
2008-08-16 09:37:01 +00:00
Gert Driesen 8d3024b086 * StreamWriter.cs: Change argument check for buffersize to require
positive number. Removed duplicate disposed check for AutoFlush.
Removed unnecessary initialization of bools.
* StreamWriterTest.cs: Added more .ctor tests. Enabled AutoFlush
test.

svn path=/trunk/mcs/; revision=110626
2008-08-15 22:00:24 +00:00
Gert Driesen 5daa245e52 * StreamWriter.cs: Removed duplicate argument checks from .ctor taking
path, as these checks are already done in FileStream .ctor. Removed
parameter name from ArgumentException to match MS.
* StreamWriterTest.cs: Moved ctor argument checks to separate methods.
Added and improved ctor tests. Added test for Close. Improved
(Auto)Flush tests. Use Assert class instead of Assertion.

svn path=/trunk/mcs/; revision=110610
2008-08-15 21:18:10 +00:00
Ben Maurer 2cac9d1d6b eol style
svn path=/trunk/mcs/; revision=46462
2005-06-23 23:11:11 +00:00
Miguel de Icaza c205c908a8 2005-04-09 Miguel de Icaza <[email protected]>
* StreamWriter.cs (Initialize): Avoid echoing the preamble to a
	file if the position of the stream is not at the beginning.  Fixes
	bug #74513

2005-04-09  Miguel de Icaza  <[email protected]>

	* StreamWriterTest.cs: New test for bug #74513.



svn path=/trunk/mcs/; revision=42738
2005-04-09 19:23:15 +00:00
Sebastien Pouliot 51111282bc 2004-05-24 Sebastien Pouliot <[email protected]>
* StreamWriterTest.cs: New tests for integer overflow, disposed
	exceptions and null handling.

svn path=/trunk/mcs/; revision=27992
2004-05-24 19:27:51 +00:00
Nick Drochak 8f495974eb 2003-05-22 Nick Drochak <[email protected]>
* StreamReaderTest.cs:
	* StreamWriterTest.cs: Forgot nunit v2 TestFixture attribute

svn path=/trunk/mcs/; revision=14800
2003-05-22 14:59:09 +00:00
Nick Drochak aed9b02192 2003/05/20 Nick Drochak <[email protected]>
* FileTest.cs:
	* StreamReaderTest.cs:
	* StreamWriterTest.cs: Workaround for process holding on to directory
	that prevented cleanup and deletion.

svn path=/trunk/mcs/; revision=14715
2003-05-20 05:29:20 +00:00
Ben Maurer 219fafa72b 2003-05-18 Ben Maurer <[email protected]>
* *.cs Cleaned up tests to work around bug that prevented
	System.IO from seeing directories starting with '.'

svn path=/trunk/mcs/; revision=14668
2003-05-18 18:10:01 +00:00
Ville Palo 9dc3d018ae 2003-05-15 Ville Palo <[email protected]>
* StreamWriterTest.cs: now use temp-dir

svn path=/trunk/mcs/; revision=14596
2003-05-15 10:50:27 +00:00
Nick Drochak 99a25b98bd 2002-12-21 Nick Drochak <[email protected]>
* all: make tests build and run under nunit2

svn path=/trunk/mcs/; revision=9817
2002-12-21 14:15:43 +00:00
Nick Drochak 94205af0d6 2002-05-15 Nick Drochak <[email protected]>
* StreamReaderTest.cs:
	* StreamWriterTest.cs:
	Make sure invalid file name has invalid characters in it.  These are
	platform dependant.

svn path=/trunk/mcs/; revision=4627
2002-05-14 11:49:25 +00:00
Nick Drochak e64e1fda3a 2002/05/10 Nick Drochak <[email protected]>
* StreamWriterTest.cs: Use "resources" directory and use OS friendly
	directory separator characters.  This makes the tests run correctly
	against MS.NET, but not yet in mono on Linux.

svn path=/trunk/mcs/; revision=4471
2002-05-10 03:39:58 +00:00
Nick Drochak 55bc7b1656 2002-05-08 Nick Drochak <[email protected]>
* StreamWriter.cs: Wrap a try-catch around block of code to find out
	what exception is being thrown when it shouldn't.

svn path=/trunk/mcs/; revision=4370
2002-05-07 12:58:23 +00:00
Nick Drochak d5c25179ff 2002-05-01 Nick Drochak <[email protected]>
* StreamReaderTest.cs:
	* StreamWriterTest.cs: Catch and display exception info where it wasn't
	being caught before.

svn path=/trunk/mcs/; revision=4192
2002-05-01 11:05:31 +00:00
Nick Drochak f4a9f41299 2002-02-28 Nick Drochak <[email protected]>
* MemoryStreamTest.cs
	* StreamWriterTest.cs
	* StringReaderTest.cs: Fix test bugs found by running against mscorlib.
	AssertEquals() requires the expected and atual values to be the same
	type if they are to be considered equal.

svn path=/trunk/mcs/; revision=2726
2002-02-27 12:47:07 +00:00
David Brandt caeccb6350 Adding 'StreamWriterTest.cs' - mostly finished.
svn path=/trunk/mcs/; revision=2433
2002-02-15 18:55:00 +00:00