* Path.cs: vararg overload of Combine now correctly concatenates
segments.
The 3 and 4 argument overloads of Combine check whether the passed
segments are null or not.
2010-05-08 Marek Habersack <[email protected]>
* PathTest.cs: added tests for the 4.0 Combine overloads.
svn path=/trunk/mcs/; revision=156928
* StreamReaderTest.cs: test for bug 589236. The detected encoding is
different from the one provided in the ctor.
svn path=/trunk/mcs/; revision=153802
2009-10-15 Sebastien Pouliot <[email protected]>
* UnmanagedMemoryStreamTest.cs: Add more test cases to cover all
validations
In System.IO:
2009-10-15 Sebastien Pouliot <[email protected]>
* UnmanagedMemoryStream.cs: Fix some and add missing validations
svn path=/trunk/mcs/; revision=144226
* 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
* corlib_test.dll.sources: Add TextReaderTest.cs.
* TextReaderTest.cs: Added a test for the Null field of
the TextReader.
* TextReader.cs : Adding the NullTextReader as a private class to
the TestReader class for the Null field of the TestReader.
Code is contributed under MIT/X11 license.
svn path=/trunk/mcs/; revision=118315
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
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
LAMESPEC comment. In GetPathRoot, throw ArgumentException if path
is whitespace-only. Throw ArgumentException in HasExtension, if path
contains invalid path characters.
* PathCas.cs: Updated method names to reflect changes in PathTest.
* PathTest.cs: Renamed tests. Use String.Empty instead of "". Added
argument check tests, and moved tests to separate methods. Avoid using
ExpectedException.
svn path=/trunk/mcs/; revision=106353
2008-05-29 Robert Jordan <[email protected]>
* Path.cs (InsecureGetFullPath): Call CanonicalizePath for
UNC paths as well.
* Path.cs (GetServerAndShare): New helper method.
* Path.cs (SameRoot, CanonicalizePath): Add UNC support.
Fixes#394681 and a bunch of TestGetFullPath unit cases.
All changes are Win32 related.
In Test/System.IO:
2008-05-29 Robert Jordan <[email protected]>
* PathTest.cs (TestGetFullPathUnix, TestGetFullPathWindows):
Factored out from the disabled TestGetFullPath test while fixing
the issues mentioned by the ERROR comment and bug #394681.
svn path=/trunk/mcs/; revision=106188
indicates whether the original path should only container the last
part of the directory. Moved logic for determining the Name and
Parent to Initialize method, to allow it to be re-used on
deserialization. Renamed argument names to fix corcompare issues.
Added missing argument checks.
* Directory.cs (CreateDirectoriesInternal): Use internal ctor for
DirectoryInfo to ensure OriginalPath only contains last part of
the directory.
* File.cs: Removed redundant checks from Create. On 2.0 profile, pass
FileOptions to FileStream. Removed redundant directory check from
Delete and modified exceptions to more closely match MS.
* FileInfo.cs: Added argument check to ctor to match MS. Added missing
deserialization ctor. Modified argument checks in MoveTo, and removed
redundant checks. Added missing argument checks in CopyTo. Code
formatting.
* FileSystemInfo.cs: Modified argument checks in CheckPath to more
closely match MS.
* MonoIO.cs: Added msg that does not disclose filename for
ERROR_FILE_EXISTS.
* Path.cs: Use String.Length instead of comparing with String.Empty.
Removed exceptions argument names to match MS.
* File.cs: Added/improved tests for Create and Move.
* DirectoryInfoTest.cs: No longer derive from deprecated Assertion
class. Improved tests for ctor, Create, Name, Parent, ...
* FileInfoTest.cs: No longer derive from deprecated Assertion class.
Improved/added tests,
* PathTest.cs: Added tests for IsPathRooted and GetFullPath.
* FileSystemInfoTest.cs: Fixed test. Now passes on both Mono and MS.
svn path=/trunk/mcs/; revision=101006
* File.cs: Pretty up the file share exception with the path name.
2008-04-04 Dick Porter <[email protected]>
* FileTest.cs: Test moving a file when the access mode disallows
it. Test from Eric Albright <[email protected]>, see bug 377049.
svn path=/trunk/mcs/; revision=99860
* DirectoryTest.cs: Add test case when deleting a directory that does
not exists but where a file of the same name exists.
svn path=/trunk/mcs/; revision=99232
Implementing System.IO.File.Replace
*File.cs: Add implementation for IO.File.Replace methods.
*MonoIO.cs: Declared an internal call for ReplaceFile
*FileTest.cs: Added a test for IO.File.Replace.
Code is contributed under MIT/X11 license.
svn path=/trunk/mcs/; revision=84485