* ConsoleTest.cs: added a bunch of tests for the standard input,
output and error stream properties.
2009-03-23 Marek Habersack <[email protected]>
* FileStreamTest.cs: added a bunch of tests for SafeFileHandle
constructors
2009-03-23 Marek Habersack <[email protected]>
* Console.cs: OpenStandard{Input,Output,Error} no longer use
FileStream on 2.0+. The reason is that SafeFileHandle used in the
stream doesn't allow handles with values <= 0, and on Unix stdin
is 0 which would break the Console class. Instead of FileStream,
introduced a simple internal specialized stream which is used in
this scenario.
2009-03-23 Marek Habersack <[email protected]>
* FileStream.cs: implemented full support for SafeFileHandle in
2.0. The obsolete constructors taking an IntPtr now wrap it in a
SafeFileHandle.
2009-03-23 Marek Habersack <[email protected]>
* SafeHandle.cs: added an internal property, OwnsHandle, used by
FileStream.
svn path=/trunk/mcs/; revision=130049
in anonymous mode.
* FileStreamTest.cs: Added and improved tests to verify whether the
reported exceptions match that of MS.
svn path=/trunk/mcs/; revision=72048
profile. This fixes bug #77644. Improved usefulness of some existing
exception messages.
* FileStreamTest.cs: Fixed tests for invalid share value to pass on
MS.NET 2.0, and all Mono profiles. Added test that verifies the
correct behavior of all possible FileMode and FileAccess combinations.
Fixed compiler warning.
svn path=/trunk/mcs/; revision=57337
* FileStreamTest.cs: Added tests for all FileMode when a directory
doesn't exists. Added a test for UnauthorizedAccessException when a
directory is opened as a file.
svn path=/trunk/mcs/; revision=41857
* TypeBuilder.cs: Add check for creation. Fix from Geoff.
More test shuffling to get rid of all the failures from the standard build
svn path=/trunk/mcs/; revision=39074
* DirectoryInfoTest.cs,
DirectoryTest.cs,
FileStreamTest.cs,
FileSystemInfoTest.cs:
Replace all '/' in path with Path.DirectorySeparatorChar.
svn path=/trunk/mcs/; revision=30037
over ObjectDisposedException, which is not one of the exceptions
listed in the documentation). Also, instead of throwing an
ObjectDisposedException, throw an IOException.
* FileStreamTest.cs (SetLengthWithClosedBaseStream): New test for
checking that the correct exception is thrown when the base stream
is closed.
svn path=/trunk/mcs/; revision=28993
* FileStream.cs: Lots of new tests for exception handling (negatives,
disposed) and test reading a byte ast the end of the stream.
svn path=/trunk/mcs/; revision=28496
* BufferedStreamTest.cs: Added tests for Position after SetLength,
SetLength after Close and Seek logic exception handling.
* FileStream.cs: Added test for invalid SeekOrigin in Seek.
* MemoryStream.cs: Added test for Seek after Close.
svn path=/trunk/mcs/; revision=28491
* FileStreamTest.cs: CtorArgumentOutOfRangeException4, we were
testing for this ecveption, but the other parameters were also
invalid. Made them correct. We don't care that MS throw
exceptions in a different order do we?
svn path=/trunk/mcs/; revision=22424
* FileStreamTest.cs: Ok, it wasn't a 1.1 thing. The test simply would
fail randomly because location 12 was sometimes a file handle.
svn path=/trunk/mcs/; revision=21263