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
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
* FileSystemInfoTest.cs: Restore original CurrentCulture on teardown.
Removed stray tabs. Code formatting.
* FileTest.cs: Restore original CurrentCulture on teardown. Removed
stray tabs. Changes spaces to tabs.
* ThreadTest.cs: Added tests for bug #81930.
* CultureInfoTest.cs: Added exception tests when invoking NumberFormat
or DateTimeFormat on a neutral culture. Added tests for bug #81930.
No longer derive from deprecated Assertion class. Added tests for
GetCultureInfo (2.0).
* ArrayTest.cs: Added test for bug #81941.
* ByteTest.cs: Restore original CurrentCulture in teardown.
* DecimalFormatterTest.cs: Restore original CurrentCulture in teardown.
Code formatting.
* DecimalTest.cs: Code formatting.
* DoubleFormatterTest.cs: Test relies on specific culture, so set it
up here. This worked before since the CurrentCulture was set in another
TestFixture, and the original one was not restored.
* FloatingPointFormatterTest.cs: Same.
* NumberFormatterTest.cs: Same. Removed stray tabs and fixes code
formatting.
* SingleFormatterTest.cs: Restore original culture on teardown. Code
formatting.
* SingleTest.cs: Same.
* StringComparerTest.cs: Restore original culture on teardown.
svn path=/trunk/mcs/; revision=80626
IOException if specified path does not exist. Fixes bug #77641.
* FileTest.cs: In 2.0 profile, no longer expect IOException when path to
non-existing directory or file is specified in Get***Time(Utc) methods
(bug #77641). Renamed tests and removed trailing tabs. Removed
duplicate test. Fixed GetLastWriteTime(Utc) tests that used
GetLastAccessTime(Utc) instead of GetLastWriteTime(Utc).
* DirectoryTest.cs: No longer expect IOException when path to
non-existing directory or file is specified in Get***Time(Utc) methods
(bug #77641).
svn path=/trunk/mcs/; revision=57338
2006-01-12 Ben Maurer <[email protected]>
* FileTest.cs: Tests tests for read/writealltext.
In System.IO:
2006-01-12 Ben Maurer <[email protected]>
* File.cs: Support for Read/WriteAllText
svn path=/trunk/mcs/; revision=55475
2005-05-06 Ben Maurer <[email protected]>
* FileTest.cs (OpenAppend): Test for #71088.
In System.IO:
2005-05-06 Ben Maurer <[email protected]>
* File.cs (Open): If a stream is opened with Append access, you
only want Write access. Fixes bug #71088.
svn path=/trunk/mcs/; revision=44163
* Test/System.IO/FileTest.cs: test for invalid characters in file names.
* System.IO/File.cs: Exists does not throw when there are invalid
characters in the file name.
* System.IO/MonoIOError.cs: uncommented INVALID_NAME.
svn path=/trunk/mcs/; revision=40208
* 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
* FileTest.cs: Added tests to confirm that Exists never throws
exceptions even for invalid filenames or for unexisting directories.
* PathTest.cs: Added windows-specific tests that shows that
ChangeExtension validate the input patch but doesn't validate the
resulting path.
svn path=/trunk/mcs/; revision=28599
* FileTest.cs:
* StreamReaderTest.cs:
* StreamWriterTest.cs: Workaround for process holding on to directory
that prevented cleanup and deletion.
svn path=/trunk/mcs/; revision=14715
* FileTest.cs: Have setup remove files before testing as well in case
tests were interrupted before TearDown could be called in a previous
run. Also test for specific exception in TestGetCreationTime ().
svn path=/trunk/mcs/; revision=11209
* FileTest.cs: Delete temporary files after each test method; Catch
unexpected exceptions and report them; Make some Assert messages
unique; Make sure temp files exist before trying Move and Delete, etc.
svn path=/trunk/mcs/; revision=4619